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综合_亚洲视频一区二区三区
    老司机一区二区三区| 午夜精品久久久久影视| 高清不卡在线观看| 日韩午夜小视频| 日本成人在线视频网站| 香蕉视频成人在线观看| 国产一区视频在线看| 成人一区在线看| 国产精品乱人伦| 亚洲一区二区三区四区中文| 亚洲网站在线| 中文字幕精品在线不卡| 欧美黄色大片网站| 欧美日韩一级片网站| 亚洲一二三四在线观看| 免费在线日韩av| 亚洲国产精品综合| 亚洲最新视频在线观看| 日韩写真欧美这视频| 精品在线播放免费| 久久精品视频在线免费观看| 亚洲一区二区三区精品视频| 国产精品一二三区| 日韩专区欧美专区| 国产精品久久久久久久久免费樱桃 | 亚洲综合色视频| 在线免费观看日本欧美| 久久精品国产清高在天天线| 中文子幕无线码一区tr| 久久亚洲春色中文字幕久久久| 国产精品日韩欧美一区二区三区| 国产成人在线视频网址| 青青草国产精品亚洲专区无| 《视频一区视频二区| 国产日韩欧美制服另类| 国产香蕉久久精品综合网| 欧美日韩国产bt| 欧美日韩一区不卡| 在线观看亚洲精品| 91福利在线导航| 欧美系列一区二区| 99精品热6080yy久久| 香蕉久久国产| 91极品美女在线| 3atv一区二区三区| 精品国产精品网麻豆系列| 欧美成人精品福利| 精品国产伦一区二区三区免费 | 日韩免费观看2025年上映的电影 | 亚洲国产高清aⅴ视频| 中文字幕亚洲成人| 午夜精品久久久久久久久| 亚洲精品中文字幕乱码三区| 婷婷久久综合九色国产成人| 国产揄拍国内精品对白| 久国产精品韩国三级视频| 成人亚洲一区二区一| 亚洲国产精品一区二区第四页av| 尤物网精品视频| 欧美一区二区三区公司| 国产精品久久久久一区二区三区| 亚洲一区在线观看网站| 99国产精品国产精品毛片| 色老头久久综合| 樱花草国产18久久久久| 91女神在线视频| 日韩免费福利电影在线观看| 日本视频一区二区三区| av成人免费观看| 亚洲少妇屁股交4| 91亚洲精品乱码久久久久久蜜桃| 欧美美女直播网站| 麻豆国产欧美一区二区三区| 久久xxxx| 蜜臀va亚洲va欧美va天堂| 色综合久久久久综合体桃花网| 亚洲三级在线观看| 在线视频精品一区| 亚洲成在线观看| 欧美自拍丝袜亚洲| 狠狠爱综合网| 日韩中文字幕av电影| 色综合久久中文字幕综合网| 91久久午夜| 7777精品伊人久久久大香线蕉的 | 久久久久久久久久久久久久一区| 久久天天做天天爱综合色| 国产精品一级在线| 51久久夜色精品国产麻豆| 免费成人在线观看| 国产精品试看| 亚洲综合色区另类av| 亚洲一区bb| 久久精品国产亚洲a| 欧美日韩成人在线| 久久精品国产久精国产| 亚洲欧美日韩精品一区二区| 久久久久国色av免费看影院| www.日韩av| 国产三级精品三级| 国产传媒一区在线| 精品国产精品网麻豆系列| 午夜欧美精品久久久久久久| 亚洲欧美偷拍三级| 91精彩视频在线| 国产麻豆成人精品| 中文字幕 久热精品 视频在线| 91麻豆123| 久久九九久精品国产免费直播| 91看片淫黄大片一级| 一区二区三区蜜桃| 欧美猛男男办公室激情| 99精品国产视频| 另类欧美日韩国产在线| 久久精品一区四区| 午夜精品亚洲一区二区三区嫩草| 亚洲一卡二卡三卡四卡无卡久久| 在线不卡免费欧美| 久久国产主播精品| 免费在线观看精品| 国产精品久久午夜| 国产精品普通话对白| 国产成人精品免费看| 中文字幕第一页久久| 欧美一级高清大全免费观看| 欧美一区二区三区久久精品| 日本不卡不码高清免费观看| 337p日本欧洲亚洲大胆精品| 欧美日韩激情一区二区三区| 国产精品v日韩精品v欧美精品网站| 日韩电影在线看| 亚洲成人综合网站| 国产精品欧美一区喷水| 欧美挠脚心视频网站| 久久免费国产| 美女诱惑一区| 一本久久综合亚洲鲁鲁五月天| 亚洲高清在线| 亚洲激情成人| 女生裸体视频一区二区三区| 99re热这里只有精品免费视频 | 欧洲色大大久久| 色综合久久综合| 欧美另类视频在线| 韩日精品视频| 国产伦精品一区| 欧美视频导航| 久久亚洲国产精品日日av夜夜| 亚洲一区成人| 在线电影国产精品| 91精品国产欧美一区二区成人| 91精品欧美久久久久久动漫 | 极品中文字幕一区| 免费日韩av片| 欧美一区日韩一区| 欧美乱妇15p| 中文字幕不卡一区| 亚洲视频在线观看三级| 亚洲天堂2014| 亚洲成人综合视频| 成人福利视频网站| 羞羞视频在线观看欧美| 91精品国产入口在线| 亚洲日本va在线观看| 久久精品国产精品亚洲红杏| 成人激情黄色小说| 色婷婷久久99综合精品jk白丝| 欧美在线999| 亚洲情趣在线观看| 丁香婷婷综合五月| 午夜一区在线| 中文字幕五月欧美| 亚洲综合色网站| 欧美+日本+国产+在线a∨观看| 在线观看91精品国产入口| 欧美精选午夜久久久乱码6080| 中文字幕在线播放不卡一区| 国产精品1024| 91精品久久久久久蜜臀| 亚洲午夜av在线| 欧美网站在线| 国产无一区二区| 成人在线综合网站| 欧美午夜精品一区二区蜜桃| 亚洲激情中文1区| 成人精品鲁一区一区二区| 国产欧美91| 亚洲视频资源在线| 国产成人无遮挡在线视频| 欧美三级韩国三级日本一级| 亚洲精品视频自拍| 亚洲开发第一视频在线播放| 久久久久久**毛片大全| 国产成人久久精品77777最新版本| 欧美资源在线| 欧美日韩国产一级二级| 亚洲一级电影视频| 99成人在线| 亚洲男人的天堂av| 亚洲一区二区三区精品视频 |