求解一個題目

作者: momoko0581 (桃子)   2018-12-10 21:01:13
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設計解問題
請問板上前備這題該如何解析,不是很清楚它的題意。
作者: djshen (djshen)   2018-12-10 21:28:00
"double precision floating elements"
作者: momoko0581 (桃子)   2018-12-10 21:44:00
抱歉 少打了^point
作者: gozule (好冷啊~~)   2018-12-11 00:25:00
題目問理論值和實際計算值的最大誤差,和浮點數誤差有關遞迴關係式離散數學課本有教公式解,和計算解比較一下即可
作者: momoko0581 (桃子)   2018-12-11 14:58:00
感謝g大

Links booklink

Contact Us: admin [ a t ] ucptt.com