日韩精品一区二区三区高清_久久国产热这里只有精品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編程
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

    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>
        欧美性开放视频| 日韩网站在线看片你懂的| 日韩系列欧美系列| 亚洲欧美日韩区| 欧美理论在线| 永久免费毛片在线播放不卡| 一区二区三区 在线观看视频| 韩国三级电影一区二区| 国产午夜精品一区二区三区欧美| 一本色道久久综合亚洲精品小说| 亚洲精品在线视频| 欧美在线不卡视频| 伊人精品成人久久综合软件| 亚洲午夜精品在线| 免费高清在线一区| 亚洲天天影视| 亚洲午夜国产一区99re久久| 久久琪琪电影院| 中文亚洲字幕| 国产精品日韩久久久| 一本久道久久综合狠狠爱| 麻豆91精品| 欧美成人中文字幕| 欧美在线免费一级片| 国产日韩精品综合网站| 欧美成人综合在线| 香蕉成人伊视频在线观看| 亚洲视频axxx| 狠狠做深爱婷婷久久综合一区| 欧美成人午夜免费视在线看片| 蜜臀久久99精品久久久久久9| 亚洲免费在线电影| 在线不卡a资源高清| 欧美视频网站| 国产精品久久久爽爽爽麻豆色哟哟| 亚洲第一福利视频| 久久一区二区精品| 国产精品99久久久久久人| 亚洲电影第三页| 韩国成人福利片在线播放| 久久久国产精品亚洲一区| 免费精品99久久国产综合精品| 老鸭窝亚洲一区二区三区| 国产欧美日韩高清| 欧美精品v日韩精品v韩国精品v| 欧美理论电影在线观看| 国模叶桐国产精品一区| 国产精品乱码| 久热成人在线视频| 西瓜成人精品人成网站| 影音先锋在线一区| 亚洲三级影片| 在线观看日韩专区| 亚洲在线中文字幕| 久久国产精品久久久久久| 精品96久久久久久中文字幕无| 亚洲国产美女| 中日韩男男gay无套| 宅男噜噜噜66一区二区66| 欧美午夜欧美| 国产日韩亚洲欧美综合| 亚洲精品免费在线| 国模精品一区二区三区| 国产精品久久久久av免费| 激情91久久| 国产亚洲欧美一区二区| 国产精品高潮呻吟视频| 亚洲第一视频| 国产精品一区一区三区| 欧美在现视频| 久久久蜜桃一区二区人| 9久草视频在线视频精品| 国产日韩一区| 国产一区二区三区四区在线观看| 亚洲欧美日韩一区二区三区在线| 国产精品福利片| 狠狠爱www人成狠狠爱综合网| 亚洲韩国青草视频| 欧美中日韩免费视频| 欧美激情视频一区二区三区不卡| 国产三级精品三级| 国产日韩欧美一区二区三区在线观看| 狠狠狠色丁香婷婷综合久久五月| 99精品国产福利在线观看免费| 欧美精品一卡二卡| 欧美日韩一视频区二区| 黄色一区三区| 99re这里只有精品6| 在线观看日韩av电影| 91久久精品国产91久久| 伊人男人综合视频网| 女人香蕉久久**毛片精品| 国产精品欧美日韩一区二区| 国产精品国产三级国产普通话蜜臀| 国产精品久久999| 国产欧美在线观看| 国产精品va在线| 午夜一区二区三区在线观看| 欧美午夜精品久久久久免费视| 久久蜜桃香蕉精品一区二区三区| 精品999成人| 亚洲午夜视频| 欧美日韩精品| 亚洲黄色视屏| 欧美亚洲日本网站| 欧美激情网站在线观看| 国产欧美精品一区二区三区介绍| 欧美尤物巨大精品爽| 国产精品福利片| 亚洲毛片在线观看| 久久尤物电影视频在线观看| 欧美日韩免费在线观看| 激情成人综合网| 亚洲欧美日韩一区在线观看| 欧美视频在线一区二区三区| 国产精品国色综合久久| 国内精品伊人久久久久av影院| 久久精品欧美| 国产精品福利片| 亚洲欧美日韩国产另类专区| 亚洲国产成人久久| 一本色道久久综合一区| 国产午夜精品全部视频在线播放| 欧美视频一区二区三区四区| 亚洲国产91精品在线观看| 在线观看日韩一区| 亚洲精品一二三区| 国产精品一二一区| 亚洲精品一区二区网址| 午夜精品福利一区二区三区av| 亚洲影视综合| 国产视频久久久久久久| 国产一区二区精品丝袜| 夜夜嗨一区二区三区| 欧美色网在线| 亚洲视频第一页| 国产伦精品一区二区三区视频孕妇| 久久露脸国产精品| 欧美丰满少妇xxxbbb| 99精品欧美一区二区三区| 欧美一区三区三区高中清蜜桃| 欧美国产一区视频在线观看| 国产午夜亚洲精品理论片色戒| 亚洲国产片色| 一区二区三区 在线观看视频| 国产乱码精品一区二区三区不卡| 欧美一级艳片视频免费观看| 亚洲高清一区二区三区| 亚洲欧美bt| 国产欧美精品一区| 欧美日韩一本到| 午夜精品久久99蜜桃的功能介绍| 国产精品99久久99久久久二8| 亚洲欧美日韩精品一区二区| 亚洲午夜免费福利视频| 噜噜噜久久亚洲精品国产品小说| 一区二区不卡在线视频 午夜欧美不卡'| 一区二区三区四区国产| 欧美精品久久久久久久免费观看| 你懂的国产精品永久在线| 中日韩男男gay无套| 亚洲高清视频一区| 老司机精品久久| 欧美精选午夜久久久乱码6080|