日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

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編程
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
  • 短信驗證碼 豆包 幣安下載 目錄網

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        欧美三级视频在线观看| 欧美日韩你懂的| 亚洲国产精品电影| 国产精品国产三级国产aⅴ9色| 久久夜色精品亚洲噜噜国产mv| 欧美激情一区二区在线| 国产精品久久九九| 噜噜噜久久亚洲精品国产品小说| 午夜在线视频观看日韩17c| 国内成人在线| 国产精品每日更新在线播放网址| 亚洲一区在线免费观看| 欧美精品性视频| 国产精品伦子伦免费视频| 亚洲国产日韩欧美在线动漫| 欧美体内she精视频在线观看| 欧美一区二区三区电影在线观看| 国产精品日韩在线播放| 国产精品永久免费视频| 欧美99久久| 欧美在线免费观看亚洲| 亚洲日本在线观看| 尤物视频一区二区| 一区二区欧美在线| 国内精品**久久毛片app| 性做久久久久久久久| 亚洲在线视频| 免费亚洲一区二区| 亚洲欧美不卡| 国产伦一区二区三区色一情| 久久精品综合一区| 亚洲精品久久久久久久久久久久久| 欧美色综合天天久久综合精品| 欧美另类在线观看| 国产一区二区三区成人欧美日韩在线观看| 国产一区二区三区久久| 午夜一级久久| 老司机67194精品线观看| 亚洲黄色成人久久久| 国产精品系列在线| 欧美日韩一本到| 日韩视频一区二区三区| 亚洲已满18点击进入久久| 亚洲欧美国产77777| 亚洲日本欧美在线| 亚洲最新中文字幕| 在线免费一区三区| 欧美/亚洲一区| 欧美精品色一区二区三区| 亚洲欧美中文字幕| 亚洲国产毛片完整版| 激情综合中文娱乐网| 午夜影院日韩| 欧美视频官网| 欧美精品粉嫩高潮一区二区| 久久久久久亚洲综合影院红桃| 羞羞答答国产精品www一本| 欧美一级片一区| 午夜日韩福利| 久久精品人人| 欧美日韩小视频| 激情六月综合| 亚洲精品一区二区三区四区高清| 欧美破处大片在线视频| 国产一区在线视频| 国产目拍亚洲精品99久久精品| 亚洲一区尤物| 久久深夜福利免费观看| 91久久夜色精品国产九色| 欧美在线|欧美| 伊人一区二区三区久久精品| 欧美大尺度在线| 国产欧美精品xxxx另类| 99视频有精品| 亚洲一区亚洲二区| 久久免费国产精品1| 亚洲精品乱码| 国产精品一区二区视频| 日韩一二三在线视频播| 欧美在线综合| 亚洲美洲欧洲综合国产一区| 亚洲春色另类小说| 一本综合久久| 影音先锋国产精品| 亚洲尤物在线视频观看| 欧美日韩一区二区三区免费看| 最新高清无码专区| 亚洲午夜影视影院在线观看| 国产日韩综合一区二区性色av| 欧美日韩一区二区三区| 毛片基地黄久久久久久天堂| 久久免费精品日本久久中文字幕| 欧美一区二区三区婷婷月色| 亚洲深爱激情| 久久久久久久999精品视频| 欧美+日本+国产+在线a∨观看| 亚洲视频在线免费观看| 国内揄拍国内精品久久| 怡红院av一区二区三区| 欧美一区二区大片| 久久夜色精品一区| 国产一区日韩欧美| 伊人一区二区三区久久精品| 免费看黄裸体一级大秀欧美| 一区二区三区久久| 91久久精品网| 国产精品网站在线观看| 欧美日韩视频在线第一区| 中文网丁香综合网| 亚洲国产一区二区三区在线播| 精品二区视频| 久久国产99| 欧美在线日韩在线| 亚洲男同1069视频| 国产精品国产福利国产秒拍| 久久久成人精品| 午夜日韩电影| 亚洲国产高清aⅴ视频| 午夜视频在线观看一区二区三区| 在线观看91精品国产麻豆| 国产日韩一区二区三区在线| 久久精品国产精品亚洲精品| 久久久久久九九九九| 欧美午夜精品一区二区三区| 国产亚洲精品福利| 欧美一区二区高清在线观看| 久久久亚洲综合| 欧美日韩精品免费观看视频| 欧美日韩高清在线观看| 欧美日韩国产综合在线| 欧美体内she精视频| 在线日韩av永久免费观看| 欧美午夜一区二区三区免费大片| 久久久夜精品| 国产美女精品| 久久精品91久久香蕉加勒比| 欧美成ee人免费视频| 亚洲四色影视在线观看| 国内精品国产成人| 国产自产2019最新不卡| 国产精品www网站| 欧美成年人在线观看| 国产一区二区成人久久免费影院| 亚洲人成网站777色婷婷| 欧美激情一区在线| 香蕉免费一区二区三区在线观看| 久久精品国产亚洲高清剧情介绍| 99这里只有久久精品视频| 亚洲在线免费观看| 亚洲伦理精品| 羞羞漫画18久久大片| 黄色亚洲大片免费在线观看| 欧美精品一区二区三区一线天视频| 久久久久久91香蕉国产| 国产欧美欧洲在线观看| 欧美亚洲尤物久久| 亚洲国产成人久久| 免费日韩一区二区| 亚洲夫妻自拍| 欧美精品一区二区在线播放| 国产精品大全| 亚洲六月丁香色婷婷综合久久| 欧美另类变人与禽xxxxx| 久久久久久有精品国产|