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

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

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

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

          9000px;">

                国产主播一区二区三区| 奇米888四色在线精品| 精品美女在线观看| 日本韩国视频一区二区| 成人免费va视频| 国产91色综合久久免费分享| 精品一区二区国语对白| 久久国产人妖系列| 国产美女在线精品| 国产九色sp调教91| 成熟亚洲日本毛茸茸凸凹| 成人高清在线视频| 91蜜桃免费观看视频| 色哟哟国产精品免费观看| 在线视频综合导航| 91超碰这里只有精品国产| 欧美一级在线观看| 久久这里都是精品| 中文字幕欧美国产| 亚洲综合色丁香婷婷六月图片| 亚洲成人在线观看视频| 日本成人在线不卡视频| 国产成人综合网| 91免费观看视频| 欧美男男青年gay1069videost| 欧美一区二区啪啪| 亚洲国产精品二十页| 亚洲精品视频在线观看网站| 亚洲gay无套男同| 国产一区三区三区| 91黄色激情网站| 日韩欧美国产麻豆| 一区精品在线播放| 五月婷婷久久综合| 国产精品系列在线播放| 91久久奴性调教| 久久综合色综合88| 亚洲一区二区三区精品在线| 秋霞午夜av一区二区三区| 丁香六月综合激情| 欧美丰满少妇xxxbbb| 欧美精彩视频一区二区三区| 亚洲一二三专区| 岛国av在线一区| 欧美人狂配大交3d怪物一区| 久久欧美中文字幕| 午夜影视日本亚洲欧洲精品| 国产精品影视网| 91精品国产福利| 国产精品日韩成人| 麻豆精品精品国产自在97香蕉| 色综合天天狠狠| 精品日韩一区二区三区| 亚洲成人黄色小说| 91啪亚洲精品| 中国av一区二区三区| 久久丁香综合五月国产三级网站| 欧美三区在线视频| 国产精品女上位| 国产一区二区看久久| 欧美一二三四在线| 亚洲丶国产丶欧美一区二区三区| 国产91对白在线观看九色| 精品人在线二区三区| 亚洲成av人片| 日本道在线观看一区二区| 中文字幕av一区二区三区免费看| 麻豆91精品91久久久的内涵| 在线观看亚洲成人| 亚洲精品日韩一| 色综合久久中文综合久久97| 中文字幕亚洲不卡| 成人免费毛片片v| 国产亚洲欧美色| 国产精品系列在线播放| 国产无遮挡一区二区三区毛片日本| 免费高清视频精品| 欧美一区二区三区日韩视频| 香蕉成人啪国产精品视频综合网| 欧美综合一区二区| 午夜精品久久久久久久久久久| 欧美三级三级三级爽爽爽| 樱花影视一区二区| 欧美视频一区在线| 免费在线观看成人| 久久新电视剧免费观看| 国产99一区视频免费| 国产精品夫妻自拍| 91在线丨porny丨国产| 一区二区日韩av| 4438x成人网最大色成网站| 青青国产91久久久久久| 精品免费99久久| 99免费精品视频| 亚洲综合在线五月| 欧美大片在线观看一区二区| 久久国产精品色| 蜜桃视频在线观看一区| 久久综合成人精品亚洲另类欧美| 国产精品一区二区不卡| 成人福利视频在线| 一区二区三区.www| 欧美成人伊人久久综合网| 不卡一区二区三区四区| 亚洲一区二区三区四区五区中文| 91精品国产综合久久久蜜臀图片| 国产不卡在线视频| 亚洲一区免费在线观看| 精品国产一区二区三区忘忧草 | 亚洲午夜国产一区99re久久| 91精品国产91综合久久蜜臀| 国产成人鲁色资源国产91色综| 1000精品久久久久久久久| 777午夜精品免费视频| 国产精品中文字幕日韩精品| 亚洲一区二区三区四区在线观看| 日韩女优av电影| 99久久综合色| 国内精品久久久久影院色| 亚洲精品国产a| 久久精品在这里| 91麻豆精品国产无毒不卡在线观看 | 欧美一区二区久久久| 成人性生交大片| 午夜精彩视频在线观看不卡| 国产欧美日韩综合| 日韩一卡二卡三卡四卡| 99国产精品视频免费观看| 久久se精品一区二区| 亚洲成人一二三| 日韩毛片精品高清免费| 久久综合九色欧美综合狠狠 | 国产精品高潮呻吟久久| 久久网站最新地址| 欧美一区二区三区日韩| 欧美日韩一级黄| 一本大道久久精品懂色aⅴ| 国产中文字幕精品| 麻豆精品在线看| 日韩高清在线一区| 日韩和欧美一区二区| 一区二区三区四区激情| 亚洲欧洲日韩在线| 久久精品在线观看| 久久这里只有精品6| 26uuu国产在线精品一区二区| 在线不卡的av| 91精品麻豆日日躁夜夜躁| 欧美日韩高清一区二区不卡| 色婷婷综合在线| 色婷婷综合五月| 欧美视频在线一区二区三区| 欧美亚洲动漫精品| 欧美吞精做爰啪啪高潮| 欧美无砖专区一中文字| 欧美日本韩国一区| 欧美一区二区三区视频免费播放| 欧美一区三区四区| 91精品国产一区二区三区| 9191成人精品久久| 精品国产人成亚洲区| 久久伊99综合婷婷久久伊| 欧美国产精品一区二区| 成人免费在线视频| 亚洲宅男天堂在线观看无病毒| 亚洲一区二区视频| 亚洲成人av电影在线| 日本视频在线一区| 激情综合网最新| 不卡视频在线观看| 欧美中文字幕一二三区视频| 欧美一区二区免费观在线| 国产亚洲精品久| 一区二区三区四区中文字幕| 亚洲成a人片在线不卡一二三区| 日韩电影免费在线看| 国产中文字幕精品| 91麻豆精品视频| 欧美一区二区视频网站| 久久久精品一品道一区| 一区二区视频在线| 六月婷婷色综合| a亚洲天堂av| 日韩一区二区影院| 国产精品另类一区| 午夜视频久久久久久| 黑人精品欧美一区二区蜜桃| 99久免费精品视频在线观看| 777亚洲妇女| 综合色天天鬼久久鬼色| 奇米精品一区二区三区在线观看一 | 成人免费视频caoporn| 欧美日韩亚洲国产综合| 久久久久久久综合日本| 亚洲一区二区av电影| 精品一区二区三区在线播放视频| 色欧美乱欧美15图片| 欧美精品一区二区三区很污很色的| 国产精品国产三级国产aⅴ无密码| 日韩av高清在线观看|