看板 C_and_CPP 關於我們 聯絡資訊
y[n]=0.5x[n]+0.3x[n-1]+0.2x[n-2], where y and x are both 1-D arrays with 1000 double precision floating elements and x[-2]=x[-1]=0. What is the maximum difference between the computed y[n] and it's real value result 使用C設計解問題 請問板上前備這題該如何解析,不是很清楚它的題意。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 182.234.206.51 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1544446875.A.C04.html
djshen: "double precision floating elements" 12/10 21:28
momoko0581: 抱歉 少打了^point 12/10 21:44
gozule: 題目問理論值和實際計算值的最大誤差,和浮點數誤差有關 12/11 00:25
gozule: 遞迴關係式離散數學課本有教公式解,和計算解比較一下即可 12/11 00:28
momoko0581: 感謝g大 12/11 14:58