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

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

AERO20542代做、代寫Python/Java編程

時(shí)間:2024-03-07  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



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

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

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評 開團(tuán)工具
    出評 開團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場巴士4號線
    合肥機(jī)場巴士4號線
    合肥機(jī)場巴士3號線
    合肥機(jī)場巴士3號線
    合肥機(jī)場巴士2號線
    合肥機(jī)場巴士2號線
    合肥機(jī)場巴士1號線
    合肥機(jī)場巴士1號線
  • 短信驗(yàn)證碼 豆包 幣安下載 AI生圖 目錄網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

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

          9000px;">

                久久综合av免费| 欧美性感一类影片在线播放| 国产精品美女久久久久久久久| 欧美一区二区三区日韩| 91精品1区2区| 日本韩国欧美三级| 不卡视频一二三| 岛国av在线一区| 国产suv精品一区二区三区| 国产一区二区三区在线观看免费视频| 麻豆国产一区二区| 男女性色大片免费观看一区二区| 亚洲一区在线观看网站| 亚洲蜜臀av乱码久久精品蜜桃| 日韩欧美国产一区二区在线播放| 欧美最猛黑人xxxxx猛交| 一本色道**综合亚洲精品蜜桃冫 | 欧美日韩国产大片| 欧美日本在线观看| 日韩你懂的在线播放| 欧美成人精品3d动漫h| 久久综合九色综合欧美就去吻| 国产三级精品三级在线专区| 国产婷婷色一区二区三区| 中文字幕一区在线| 婷婷久久综合九色综合伊人色| 青青草国产精品97视觉盛宴| 国产一区二区久久| 色哟哟欧美精品| 日韩午夜在线观看| 18成人在线观看| 毛片av一区二区| 97精品国产露脸对白| 日韩午夜av一区| 亚洲精品中文在线影院| 老司机免费视频一区二区三区| 99视频热这里只有精品免费| 欧美丰满一区二区免费视频| 国产欧美日韩不卡| 日本在线观看不卡视频| 成人动漫一区二区在线| 日韩一区二区三区在线视频| 国产精品每日更新在线播放网址 | 欧美一区三区二区| 国产精品国产a级| 美女国产一区二区| 色av综合在线| 国产欧美一区二区精品忘忧草| 一区二区三区不卡视频在线观看 | 国产一区二区不卡在线| 国产成人小视频| 欧美日本高清视频在线观看| 久久精品在这里| 免费在线观看视频一区| 在线视频欧美精品| 欧美激情在线免费观看| 毛片av一区二区| 欧美精品一二三| 亚洲欧美国产毛片在线| 国产一区二区影院| 精品久久一二三区| 日韩成人免费电影| 欧美无乱码久久久免费午夜一区| 国产清纯美女被跳蛋高潮一区二区久久w | 综合色中文字幕| 久久精品999| 777午夜精品视频在线播放| 一区二区三区国产| 色国产精品一区在线观看| 国产精品久久久久久福利一牛影视| 看国产成人h片视频| 91精品国产aⅴ一区二区| 亚洲午夜久久久| 在线观看国产精品网站| 亚洲黄色尤物视频| 欧美中文字幕亚洲一区二区va在线 | 久久99精品久久久久婷婷| 日韩一区二区三区av| 青娱乐精品视频| 日韩精品一区二区三区视频 | 亚洲色图视频网| av不卡在线播放| 亚洲欧美在线观看| 91亚洲精品久久久蜜桃网站| 1000精品久久久久久久久| aaa国产一区| 亚洲免费av网站| 欧美亚洲日本一区| 日本欧美在线观看| 欧美成人三级在线| 国产精品亚洲人在线观看| 久久久久久毛片| k8久久久一区二区三区| 国产精品久久久久久妇女6080| 99国产欧美久久久精品| 夜色激情一区二区| 欧美精品vⅰdeose4hd| 麻豆91免费看| 国产精品视频第一区| 日本电影欧美片| 免费人成精品欧美精品| 国产午夜一区二区三区| 色综合久久九月婷婷色综合| 亚洲成av人片| 久久久99精品免费观看不卡| kk眼镜猥琐国模调教系列一区二区| 亚洲乱码精品一二三四区日韩在线 | 成人sese在线| 亚洲一级二级三级在线免费观看| 欧美日韩一卡二卡| 国产一区二区三区四| 亚洲免费视频中文字幕| 欧美精品久久99久久在免费线 | 中日韩av电影| 欧美日韩综合色| 韩国精品在线观看| 亚洲黄色免费电影| 欧美一级视频精品观看| 成人做爰69片免费看网站| 亚洲一区二区视频在线观看| 欧美mv日韩mv亚洲| 在线看不卡av| 高清shemale亚洲人妖| 视频一区二区三区入口| 中文成人av在线| 91精品福利在线一区二区三区| 99久久精品国产导航| 美女视频黄免费的久久 | 欧美精品一区二区三区蜜臀| 色综合一区二区| 国产麻豆视频精品| 亚洲国产一区二区在线播放| 中文字幕精品一区| 日韩视频一区二区| 欧美主播一区二区三区| 成人国产视频在线观看| 极品少妇xxxx精品少妇| 亚洲电影激情视频网站| 中文字幕日本不卡| 国产拍揄自揄精品视频麻豆| 日韩一区二区三区av| 欧美日韩精品欧美日韩精品| 不卡的av在线| 国产成人av一区二区三区在线| 麻豆精品视频在线观看| 日本不卡一二三| 午夜久久福利影院| 亚洲一区二区三区激情| 亚洲欧美一区二区久久 | 日韩丝袜美女视频| 91精品国产麻豆| 欧美精品v日韩精品v韩国精品v| 一本到不卡精品视频在线观看| 国产在线一区观看| 亚洲第一在线综合网站| 亚洲曰韩产成在线| 亚瑟在线精品视频| 亚洲成人激情社区| 日韩激情视频网站| 日av在线不卡| 久久精品国产久精国产| 免费人成网站在线观看欧美高清| 天使萌一区二区三区免费观看| 亚洲综合在线免费观看| 夜夜嗨av一区二区三区| 亚洲一级二级在线| 婷婷久久综合九色综合绿巨人| 亚洲成人在线观看视频| 亚洲成人免费av| 日韩激情视频网站| 国内精品国产成人国产三级粉色| 国产一区二区毛片| 成人av电影免费观看| 在线观看av不卡| 91精品国产综合久久精品性色 | 国产精品视频一二三区| 亚洲色图欧美激情| 午夜久久久久久久久久一区二区| 免费在线成人网| 国产精品一区二区在线观看网站| 大陆成人av片| 欧美熟乱第一页| 日韩欧美一区在线观看| 欧美激情一区三区| 午夜婷婷国产麻豆精品| 紧缚捆绑精品一区二区| k8久久久一区二区三区| 欧美综合欧美视频| 精品久久久久久久久久久久久久久久久 | 亚洲777理论| 国产精品综合在线视频| 日本黄色一区二区| 日韩欧美中文一区二区| 国产精品久久久久婷婷二区次| 亚洲国产美国国产综合一区二区| 激情文学综合插| 色综合久久久久网| 久久美女高清视频| 亚洲成a天堂v人片| 9i看片成人免费高清|