99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

AERO20542代做、代寫Python/Java編程

時(shí)間:2024-03-07  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



MECH20042/AERO20542 Numerical Methods and Computing
Laboratory exercise 1: Direct methods for the solution of
tridiagonal systems of linear equations
Solution of systems of linear equations is one of the most frequently encountered problems in
numerical modelling and simulation. Efficient numerical methods, both in terms of the execution time
and memory storage are essential to complete this task. Sparse systems of linear equations arise in
many applications, such as finite element or finite volume solution of differential equations. Sparse
linear systems have coefficient matrices that are sparse, i.e., a large proportion of the elements are
equal to zero. Banded matrices are a special class of sparse matrices in which the non-zero coefficients
are concentrated about the main diagonal.
Storing sparse matrices in computer memory as two-dimensional arrays is inefficient, as many zero
elements are kept needlessly in computer memory. Banded matrices can be stored by their diagonals,
where each diagonal is stored as a one-dimensional array (a vector). With this setup a tridiagonal
matrix 𝑇 of size 𝑛 × 𝑛

can be stored using three vectors as follows:
𝐴 = [𝑎11 𝑎22 ⋯ 𝑎𝑛𝑛]
𝑇 ∈ 𝑅
𝑛
,
w**; = [𝑎21 𝑎** ⋯ 𝑎𝑛,𝑛−1]
𝑇 ∈ 𝑅
𝑛−1
,
𝐶 = [𝑎12 𝑎23 ⋯ 𝑎𝑛−1,𝑛]
𝑇 ∈ 𝑅
𝑛−1
.
The Gaussian elimination technique applied to a tridiagonal system 𝑇𝒙 = 𝒇 is particularly simple,
because only the non-zero elements in the sub-diagonal held in vector w**; need to be eliminated. This
algorithm, known as the Thomas algorithm, proceeds as follows:
FORWARD ELIMINATION BACKSUBSTITUTION
𝑎𝑖𝑖 = 𝑎𝑖𝑖 −
𝑎𝑖,𝑖−1
𝑎𝑖−1,𝑖−1
𝑎𝑖−1,𝑖 w**9;𝑛 =
𝑓𝑛
𝑎𝑛𝑛
𝑓𝑖 = 𝑓𝑖 −
𝑎𝑖,𝑖−1
𝑎𝑖−1,𝑖−1
𝑓𝑖−1 w**9;𝑖 =
1
𝑎𝑖𝑖
(𝑓𝑖 − 𝑎𝑖,𝑖+1 w**9;𝑖+1)
𝑖 = 2, … , 𝑛 𝑖 = 𝑛 − 1, … ,1
TASK 1. Calculate the number of arithmetic operations that are required to solve a tridiagonal system
𝑇𝒙 = 𝒇 of size 𝑛 using the Thomas algorithm. Based on this result, determine the asymptotic
complexity of the Thomas algorithm, and compare it to the asymptotic complexity of the standard
Gaussian elimination.
TASK 2. Rewrite the Thomas algorithm in terms of the arrays 𝐴,w**;, and 𝐶 introduced to store the matrix
𝑇 efficiently.
TASK 3. Implement the Thomas algorithm from TASK 2 as a Python function. The input parameters to
the function should be the coefficient matrix 𝑇 (stored as three arrays 𝐴,w**;, and 𝐶) and the right-hand
side vector 𝒇. The output should be the solution vector 𝒙. The coefficient matrix and the right-hand
side should be defined in the main script and passed to the function that solves the system.
TASK 4. Test your code by solving the linear system of size 𝑛 = 10 with the values 𝐴 = 2, and w**; = 𝐶 =
−1. Set the right-hand side to 𝒇 = 𝟏. To verify the correctness of your code, compare the solution
vector obtained from the Thomas algorithm to that obtained by applying the direct solver
numpy.linalg.solve(). For the latter, the coefficient matrix should be assembled.
TASK 5. Solve five linear systems 𝑇𝒙 = 𝒇 with 𝐴 = 2, w**; = 𝐶 = −1 and 𝒇 = 𝟏 varying the problem size
𝑛 between 106
and 108
. Record the execution times in seconds for each case. To accomplish this task,
explore the Python function timer() from the package timeit (refer to the code for matrix
multiplication covered in lectures). Plot a graph where the obtained execution times are represented
as the function of the problem size 𝑛. What are your conclusions about the cost of the Thomas
請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:PROG2007代寫、Python/c++程序語言代做
  • 下一篇:代寫CMSC 323、代做Java/Python編程
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評 開團(tuán)工具
    出評 開團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場巴士4號線
    合肥機(jī)場巴士4號線
    合肥機(jī)場巴士3號線
    合肥機(jī)場巴士3號線
    合肥機(jī)場巴士2號線
    合肥機(jī)場巴士2號線
    合肥機(jī)場巴士1號線
    合肥機(jī)場巴士1號線
  • 短信驗(yàn)證碼 豆包 幣安下載 AI生圖 目錄網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                亚洲欧洲av在线| 欧美日韩精品一区二区三区| 99久久er热在这里只有精品66| 日韩欧美电影一区| 国产成人免费av在线| 亚洲色图.com| 欧美裸体bbwbbwbbw| 91小视频在线观看| 国产一区二区美女| 欧美亚洲一区二区在线| 91日韩一区二区三区| 不卡的电影网站| 99视频在线精品| 成人亚洲精品久久久久软件| 国产精品一区不卡| 成人在线视频一区| 色悠悠久久综合| 欧美日韩一区 二区 三区 久久精品| 欧美亚洲图片小说| 不卡一区二区三区四区| 7777女厕盗摄久久久| 亚洲国产综合视频在线观看| 欧美日本国产一区| 国产精品亚洲а∨天堂免在线| 亚洲综合色丁香婷婷六月图片| 久久青草国产手机看片福利盒子| 91精品办公室少妇高潮对白| 国产美女在线精品| 视频一区视频二区中文字幕| 综合久久久久综合| 国产午夜亚洲精品理论片色戒| 91精品国产全国免费观看| 91视视频在线观看入口直接观看www | 亚洲男人天堂av网| 日韩欧美卡一卡二| 在线观看网站黄不卡| 成人激情开心网| 久久99在线观看| 日韩电影在线免费看| 国产精品成人免费精品自在线观看| 国产福利一区二区三区在线视频| 韩国精品一区二区| 首页亚洲欧美制服丝腿| 亚洲男人的天堂在线观看| 亚洲成人av一区二区三区| 精品夜夜嗨av一区二区三区| 99久久99久久综合| 欧美一区二区三区精品| 最新成人av在线| 久久97超碰色| 欧美日韩国产高清一区| 亚洲欧洲另类国产综合| 久久精品国产99国产| 国产精品看片你懂得| 在线精品亚洲一区二区不卡| 日本精品视频一区二区| 91欧美激情一区二区三区成人| 不卡视频在线观看| 在线观看亚洲成人| 8x8x8国产精品| 日韩视频不卡中文| 亚洲精品在线三区| 国产精品入口麻豆九色| 国产精品成人一区二区艾草| 国产精品国产精品国产专区不片| 亚洲欧美激情插 | 国产女同互慰高潮91漫画| 国产欧美综合在线观看第十页 | 亚洲综合自拍偷拍| 日韩成人一区二区三区在线观看| 麻豆成人免费电影| 成人免费视频app| 色网综合在线观看| 666欧美在线视频| 国产清纯白嫩初高生在线观看91| 亚洲精品国产精华液| 日韩成人一区二区三区在线观看| 狠狠色综合日日| 91在线视频观看| 欧美一级理论性理论a| 欧美极品xxx| 亚洲一二三区视频在线观看| 美女高潮久久久| 99在线视频精品| 欧美精品丝袜久久久中文字幕| 久久久九九九九| 亚洲一区在线观看视频| 国产一区二区伦理片| 色94色欧美sute亚洲线路一ni| 日韩一区二区麻豆国产| 亚洲免费观看高清| 国产精品羞羞答答xxdd| 欧美日韩激情在线| 欧美国产成人在线| 青青草伊人久久| 一本大道久久精品懂色aⅴ| 精品久久久久一区| 亚洲成人精品一区| 91首页免费视频| 国产精品私房写真福利视频| 久久国内精品视频| 精品视频在线免费观看| 国产精品你懂的在线欣赏| 国产最新精品精品你懂的| 欧美视频一区二区三区| 成人欧美一区二区三区白人| 国产美女久久久久| 日韩女优毛片在线| 五月天中文字幕一区二区| 99国产精品99久久久久久| 久久精品亚洲一区二区三区浴池| 日韩在线播放一区二区| 欧美视频中文字幕| 亚洲乱码中文字幕综合| fc2成人免费人成在线观看播放| 欧美tk丨vk视频| 奇米精品一区二区三区在线观看| 欧洲精品一区二区三区在线观看| 中文字幕一区二区三区四区 | 精品久久久久久久久久久院品网| 亚洲卡通欧美制服中文| 99精品久久99久久久久| 中文字幕亚洲精品在线观看| 91在线一区二区| 17c精品麻豆一区二区免费| www.亚洲免费av| 成人免费在线播放视频| 99r国产精品| 一区二区三区影院| 欧美日韩三级一区二区| 亚洲国产精品自拍| 欧美无砖专区一中文字| 日本亚洲一区二区| 精品国产乱码久久| 国产传媒一区在线| 中文字幕av在线一区二区三区| 99久久国产综合精品麻豆| 综合久久国产九一剧情麻豆| 成人av中文字幕| 亚洲欧美国产毛片在线| 欧美人妇做爰xxxⅹ性高电影| 久久国产视频网| 国产精品日韩精品欧美在线| 欧美图片一区二区三区| 看电视剧不卡顿的网站| 国产亚洲人成网站| 91国偷自产一区二区开放时间 | 在线播放国产精品二区一二区四区| 亚洲成人av中文| 久久网这里都是精品| 91在线看国产| 日韩在线播放一区二区| 国产午夜精品一区二区三区四区| 色综合久久久久久久| 日本人妖一区二区| 国产精品久久久久一区 | 在线播放91灌醉迷j高跟美女| 国产一区二区三区av电影 | 久久精品水蜜桃av综合天堂| 91一区二区三区在线观看| 三级欧美韩日大片在线看| 国产女人18毛片水真多成人如厕 | 国产精品欧美一级免费| 在线这里只有精品| 韩国精品主播一区二区在线观看| 亚洲色图制服诱惑| 精品美女一区二区| 在线观看日韩av先锋影音电影院| 九色综合狠狠综合久久| 一区二区三区中文在线观看| 日韩精品在线一区| 欧美性一级生活| 国产99久久久久| 看电影不卡的网站| 亚洲国产日韩在线一区模特| 国产精品久久久久久久岛一牛影视 | 国产午夜亚洲精品理论片色戒 | 国产超碰在线一区| 奇米一区二区三区av| 亚洲免费av高清| 18成人在线观看| 久久麻豆一区二区| 欧美一区二区日韩| 欧美视频日韩视频| 色综合久久综合中文综合网| 国产91精品精华液一区二区三区 | 波波电影院一区二区三区| 奇米在线7777在线精品| 午夜电影网亚洲视频| 亚洲一区国产视频| 亚洲欧美日本韩国| 亚洲精品你懂的| 亚洲人成网站精品片在线观看| 国产三区在线成人av| 日韩视频一区二区在线观看| 欧美日韩一区二区三区四区| 欧美性色欧美a在线播放| 91猫先生在线| 在线精品视频免费播放| 在线视频一区二区三区|