日韩精品一区二区三区高清_久久国产热这里只有精品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>
        亚洲已满18点击进入久久| 亚洲二区免费| 欧美一级免费视频| 国产精品99久久久久久白浆小说| 国产精品美女久久久久久2018| 亚洲精品国产欧美| 中文日韩欧美| 久久亚洲图片| 欧美成人精品高清在线播放| 国产伦精品一区二区三区四区免费| 亚洲制服丝袜在线| 亚洲美女精品久久| 亚洲一区二区三区高清不卡| 欧美日韩国产限制| 久久综合色8888| 亚洲电影专区| 欧美日韩中文在线观看| 亚洲另类在线一区| 亚洲丶国产丶欧美一区二区三区| 欧美a级一区| 欧美日韩国产精品成人| 一本不卡影院| 国产日韩欧美另类| 国产有码在线一区二区视频| 久久精品国产亚洲一区二区三区| 欧美华人在线视频| 欧美亚洲成人网| 一区二区免费在线观看| 极品中文字幕一区| 亚洲欧洲精品成人久久奇米网| 欧美日韩综合| 国产日韩欧美在线视频观看| 欧美日韩国产首页在线观看| 国产色综合天天综合网| 亚洲一区在线视频| 亚洲午夜女主播在线直播| 一本大道久久a久久综合婷婷| 国产精品久久久久国产a级| 国产精品成人免费| 欧美日本国产| 亚洲综合丁香| 欧美精品日韩一本| 亚洲黄一区二区三区| 亚洲欧洲一区二区在线观看| 欧美激情精品久久久久久蜜臀| 欧美成人综合一区| 亚洲综合色婷婷| 黄色资源网久久资源365| 久久精品人人做人人综合| 男女精品网站| 国产精品久久国产精品99gif| 欧美一区二区三区四区在线观看| 亚洲精品一区二| 久久国产婷婷国产香蕉| 亚洲精品久久7777| 欧美一区亚洲一区| 亚洲最新在线| 国色天香一区二区| 在线播放精品| 欧美日韩国产va另类| 一本久久a久久免费精品不卡| 中日韩视频在线观看| 亚洲伦伦在线| 韩国av一区二区三区在线观看| 在线播放日韩欧美| 欧美另类女人| 一区二区三区欧美在线| 亚洲乱码国产乱码精品精98午夜| 亚洲少妇最新在线视频| 精久久久久久久久久久| 久久久av毛片精品| 黄色精品免费| 一区二区三区日韩| 国产日韩精品一区二区浪潮av| 亚洲精品在线观看免费| 欧美大片免费观看| 美女精品国产| 国产亚洲成人一区| 亚洲午夜高清视频| 午夜国产精品影院在线观看| 一本一本久久a久久精品综合妖精| 国产精品视频一| 久久成人免费日本黄色| 欧美成人国产一区二区| 国产一区二区中文字幕免费看| 欧美无乱码久久久免费午夜一区| 国产毛片精品国产一区二区三区| 久久一区激情| 久久综合九色综合久99| 麻豆亚洲精品| 亚洲一区精品电影| 欧美经典一区二区三区| 久久免费99精品久久久久久| 一本色道久久综合狠狠躁篇怎么玩| 欧美插天视频在线播放| 久久精品亚洲乱码伦伦中文| 亚洲国产精品电影在线观看| 伊人久久噜噜噜躁狠狠躁| 一区二区三区福利| 在线看不卡av| 久久精品国产欧美激情| 免费人成精品欧美精品| 亚洲视频精选| 亚洲丁香婷深爱综合| 99视频精品免费观看| 亚洲精品影院| 欧美日韩在线播放三区四区| 在线观看视频一区二区欧美日韩| 国产精品视频网站| 精品福利免费观看| 国产精品一区在线观看你懂的| 久久精品在线视频| 在线精品福利| 老司机67194精品线观看| 欧美一区二区在线视频| 欧美三区在线| 欧美亚州韩日在线看免费版国语版| 国产精品一区二区久激情瑜伽| 国产一区二区在线观看免费| 久久gogo国模裸体人体| 欧美午夜视频一区二区| 久久成人精品视频| 亚洲激情精品| 国产欧美一区二区精品婷婷| 日韩午夜电影| 欧美在线视频免费观看| 午夜电影亚洲| 亚洲欧美日韩国产综合在线| 欧美精品成人91久久久久久久| 欧美日韩小视频| 国内精品国产成人| 亚洲激情视频在线观看| 亚洲午夜久久久久久久久电影网| 国产精品99一区| 亚洲欧美成人网| 性伦欧美刺激片在线观看| 99这里有精品| 免费视频最近日韩| 午夜精品久久久久久久久| 免费观看欧美在线视频的网站| 亚洲一区二区三区在线看| 欧美韩国一区| 午夜精品一区二区在线观看| 久久久久国产成人精品亚洲午夜| 一本一本大道香蕉久在线精品| 欧美福利一区二区三区| 欧美大片免费观看| 亚洲视频在线观看视频| 久久成人精品一区二区三区| 久久久久久亚洲综合影院红桃| 欧美在线一二三| 日韩视频一区二区三区在线播放| 免费在线观看一区二区| 欧美日韩亚洲综合| 久热综合在线亚洲精品| 欧美一级成年大片在线观看| 午夜精品久久久久久99热软件| 伊人天天综合| 久久久久久久久久久久久女国产乱| 亚洲乱码国产乱码精品精天堂| 在线看国产一区| 欧美日韩国产精品自在自线| 欧美午夜女人视频在线| 久久9热精品视频|