91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

AERO20542代做、代寫Python/Java編程

時間:2024-03-07  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



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

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

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区
    中文欧美字幕免费| 久久国产视频网| 中文字幕不卡一区| 精品国产精品网麻豆系列| 欧美精品黑人性xxxx| 911精品产国品一二三产区| 欧美日韩精品一区视频| 欧美三区免费完整视频在线观看| 色999日韩国产欧美一区二区| 久久精品成人| 欧美无砖砖区免费| 欧美人牲a欧美精品| 91精品国产色综合久久ai换脸| 91麻豆精品国产91久久久 | 中文日韩欧美| 亚洲一区一卡| 欧美日韩亚洲综合在线 | 99国产精品久久久久| av亚洲精华国产精华精| 午夜精品影院| 国产偷久久久精品专区| 91国产精品成人| 日韩一区二区三区电影| 久久久久久日产精品| 国产精品乱码久久久久久| 国产精品系列在线| 亚洲丰满少妇videoshd| 蜜桃av一区二区| 成人精品电影在线观看| 精品av久久久久电影| 久久久久久久久一区二区| 欧美日韩不卡一区| 久久久国产综合精品女国产盗摄| 成人欧美一区二区三区视频网页| 日韩精品久久久久久| 国产 欧美在线| 99在线|亚洲一区二区| 色噜噜狠狠成人中文综合| 日韩免费电影一区| 亚洲欧洲日产国产综合网| 日韩不卡一区二区三区| 成人午夜电影网站| 一区二区三区四区国产| 欧美高清dvd| 最新久久zyz资源站| 精品综合免费视频观看| 欧美日本三区| 国产女主播一区| 亚洲乱码一区二区三区在线观看| 理论电影国产精品| 欧美日韩一区二区三区免费| 91国偷自产一区二区开放时间| 久久免费精品国产久精品久久久久 | 欧美日韩黄视频| 成人免费一区二区三区在线观看| 韩国女主播成人在线| 亚洲激情网站| 欧美大肚乱孕交hd孕妇| 午夜精品久久一牛影视| 欧美激情日韩| 91麻豆精品国产无毒不卡在线观看 | 日韩一区二区免费电影| 亚洲影院理伦片| 欧美一区二区三区另类| 精品视频一区三区九区| 亚洲精品国产a| 欧美二区不卡| 日韩一区二区视频在线观看| 天天色综合天天| 国产精品www994| 精品国产一区久久| 激情综合色播激情啊| 亚洲欧美久久久| 国产精品女主播av| 99久久精品国产网站| 欧美日韩精品综合在线| 石原莉奈在线亚洲二区| 亚洲毛片av| 国产精品成人在线观看| av电影在线观看一区| 欧美日韩精品免费观看视频| 亚洲成人av免费| 99精品视频免费观看视频| 国产欧美精品区一区二区三区| 成人av免费在线| 日韩精品在线看片z| 久久91精品久久久久久秒播| 久久人人97超碰人人澡爱香蕉| 亚洲人xxxx| 日韩午夜av在线| 中文字幕一区二区三| 欧美性色综合| 国产女人18毛片水真多成人如厕| 成人免费高清视频| 精品国产三级电影在线观看| 国产精品99精品久久免费| 欧亚洲嫩模精品一区三区| 日本三级亚洲精品| 久久最新视频| 青青草91视频| 欧美精品 国产精品| 国产成人精品午夜视频免费| 欧美一区二区三区婷婷月色| 国产成人午夜视频| 精品乱码亚洲一区二区不卡| 成a人片国产精品| 国产午夜亚洲精品羞羞网站| 欧美一区二区三区在线播放 | 久久精品中文| 美女爽到高潮91| 91精品婷婷国产综合久久 | 日韩欧美国产一二三区| 成人av电影在线观看| 久久精品无码一区二区三区| 欧美在线视屏| 日韩一区欧美小说| 性伦欧美刺激片在线观看| 日本v片在线高清不卡在线观看| 一本一道久久a久久精品综合蜜臀| 蜜桃一区二区三区四区| 91精品午夜视频| 欧美粗暴jizz性欧美20| 一区二区三区中文在线观看| 久久精品日韩欧美| 国精品**一区二区三区在线蜜桃| 欧美一级黄色录像| 欧美日本免费| 天涯成人国产亚洲精品一区av| 欧美日韩黄色一区二区| 91亚洲午夜精品久久久久久| 最近中文字幕一区二区三区| 色哟哟精品一区| 成人教育av在线| 玉足女爽爽91| 91精品在线免费观看| 欧美jjzz| 美洲天堂一区二卡三卡四卡视频| 精品91自产拍在线观看一区| 日韩一区二区久久| 极品美女销魂一区二区三区 | 女生裸体视频一区二区三区| 亚洲成人一区二区| 欧美大片国产精品| 亚洲国内欧美| 国产黄色91视频| 亚洲人成在线观看一区二区| 欧美日韩国产片| 亚洲欧洲日本国产| 国产一区二区h| 亚洲人妖av一区二区| 9191国产精品| 一本综合精品| 不卡欧美aaaaa| 亚洲不卡一区二区三区| 精品久久久影院| 久久黄色网页| 欧美xx69| 国产精品77777| 天堂影院一区二区| 国产日韩欧美电影| 欧美日韩精品一区视频| 一区二区三区福利| 99久久99久久精品国产片果冻 | 欧美人与禽猛交乱配视频| 精品午夜久久福利影院| 亚洲摸摸操操av| 久久这里只有精品首页| 欧美亚洲免费在线一区| 激情综合激情| 北岛玲一区二区三区四区| 婷婷夜色潮精品综合在线| 中文一区二区在线观看| 欧美一级高清片| 在线观看免费亚洲| 亚洲一区成人| 欧美精品一区三区在线观看| 国产suv精品一区二区883| 蜜臀久久99精品久久久久宅男| 亚洲乱码国产乱码精品精小说 | 国产91色综合久久免费分享| 91丝袜国产在线播放| 久久精品久久久精品美女| 亚洲精品高清在线| 久久精品欧美一区二区三区麻豆| 91精品国产综合久久久蜜臀图片| 色婷婷久久久亚洲一区二区三区 | 国产精品福利av| 国产婷婷色一区二区三区在线| 日韩片之四级片| 91精品国产综合久久福利| 精品视频一区三区九区| 91高清视频在线| 久久一区精品| 久久久水蜜桃av免费网站| 国产精品久久久一区二区三区| 国精品一区二区三区| 欧美sm重口味系列视频在线观看| 99久久er热在这里只有精品15| voyeur盗摄精品| jlzzjlzz国产精品久久|