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

        AERO20542代做、代寫Python/Java編程

        時間:2024-03-07  來源:合肥網(wǎng)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

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

        合肥圖文信息
        出評 開團工具
        出評 開團工具
        挖掘機濾芯提升發(fā)動機性能
        挖掘機濾芯提升發(fā)動機性能
        戴納斯帝壁掛爐全國售后服務(wù)電話24小時官網(wǎng)400(全國服務(wù)熱線)
        戴納斯帝壁掛爐全國售后服務(wù)電話24小時官網(wǎng)
        菲斯曼壁掛爐全國統(tǒng)一400售后維修服務(wù)電話24小時服務(wù)熱線
        菲斯曼壁掛爐全國統(tǒng)一400售后維修服務(wù)電話2
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國24小時客服熱線
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國24小時
        海信羅馬假日洗衣機亮相AWE  復古美學與現(xiàn)代科技完美結(jié)合
        海信羅馬假日洗衣機亮相AWE 復古美學與現(xiàn)代
        合肥機場巴士4號線
        合肥機場巴士4號線
        合肥機場巴士3號線
        合肥機場巴士3號線
      4. 短信驗證碼 酒店vi設(shè)計

        国产福利电影一区二区三区,日韩伦理电影在线福 | 亚洲av无码日韩av无码网站冲| 先锋影音国产精品| 日韩精品中文字幕在线| 国产精品美女一区二区| 99久久久国产精品免费牛牛| 亚洲乱码日产精品a级毛片久久| 大伊香蕉在线精品不卡视频| 全球AV集中精品导航福利| 精品久久人人做人人爽综合| 国产精品毛片无遮挡高清| 色婷婷激情av精品影院| 久久伊人精品热在75| 亚洲国产成人精品女人久久久 | 国产在线精品一区二区高清不卡| 国产精品亚洲精品日韩电影| 亚洲国产高清在线精品一区| 综合国产精品第一页| 日韩精品免费一级视频| 亚洲精品久久久久无码AV片软件| 精品国产乱码久久久久软件| 国产精品亚洲A∨天堂不卡| 日韩色日韩视频亚洲网站| 亚洲日韩涩涩成人午夜私人影院| 国产亚洲精品精品精品| 中文字幕日韩精品一区二区三区 | 凹凸国产熟女精品视频app| 九九精品视频在线播放8| 激情啪啪精品一区二区| 精品久久久久不卡无毒| 2021国产精品自拍| 国产精品亚洲а∨无码播放| 亚洲无线观看国产精品| 无码AⅤ精品一区二区三区| 情侣视频精品免费的国产| 91精品国产自产在线观看高清| 人人妻久久人人澡人人爽人人精品| 成年日韩片av在线网站| 日韩不卡高清视频| 国产精品美女网站在线看| 精品久久国产字幕高潮|