Truncation error analysis provides a widely applicable framework for analyzing the accuracy of nite dierence schemes. This type of analysis can also be used for nite element and nite volume methods if the discrete equations are written in nite dierence form. Now calculate only the singular values of your matrix with the command svd(A). Now plot these values by entering plot(svd(A)). Note how the singular values decrease. When we multiply U, S, and V back together, the larger singular values contribute more to the magnitude of A than the smaller ones.
A Taylor polynomial approximates the value of a function, and in many cases, it’s helpful to measure the accuracy of an approximation. This information is provided by the Taylor remainder term:
f(x) = Tn(x) + Rn(x)
Notice that the addition of the remainder term Rn(x) turns the approximation into an equation. Here’s the formula for the remainder term:
It’s important to be clear that this equation is true for one specific value of c on the interval between a and x. It does not work for just any value of c on that interval.
Ideally, the remainder term gives you the precise difference between the value of a function and the approximation Tn(x). However, because the value of c is uncertain, in practice the remainder term really provides a worst-case scenario for your approximation.
The following example should help to make this idea clear, using the sixth-degree Taylor polynomial for cos x:
Suppose that you use this polynomial to approximate cos 1:
How accurate is this approximation likely to be? To find out, use the remainder term:
cos 1= T6(x) + R6(x)
Adding the associated remainder term changes this approximation into an equation. Here’s the formula for the remainder term:
So substituting 1 for x gives you:
At this point, you’re apparently stuck, because you don’t know the value of sin c. However, you can plug in c = 0 and c = 1 to give you a range of possible values:
Keep in mind that this inequality occurs because of the interval involved, and because that sine increases on that interval. You can get a different bound with a different interval.
This simplifies to provide a very close approximation:
Thus, the remainder term predicts that the approximate value calculated earlier will be within 0.00017 of the actual value. And, in fact,
As you can see, the approximation is within the error bounds predicted by the remainder term.
How To Calculate Truncation Error
Calculates the error function erf(x) and complementary error function erfc(x). | |||
[1] 2020/09/29 02:51 Male / 20 years old level / High-school/ University/ Grad student / Useful /
[2] 2020/06/20 22:55 Male / Under 20 years old / High-school/ University/ Grad student / Useful /
[3] 2020/05/03 16:34 Male / 20 years old level / High-school/ University/ Grad student / Very /
[4] 2019/05/12 06:36 Male / 20 years old level / High-school/ University/ Grad student / Useful /
[5] 2017/09/23 12:11 Male / 40 years old level / An engineer / Useful /
[6] 2017/08/18 01:45 Male / 50 years old level / An engineer / Useful /
[7] 2016/05/19 13:56 Male / 20 years old level / High-school/ University/ Grad student / - /
[8] 2015/06/11 04:14 Female / 40 years old level / An engineer / Useful /
[9] 2015/06/02 18:10 Male / 20 years old level / An engineer / Very /
[10] 2014/12/09 06:27 Female / 20 years old level / High-school/ University/ Grad student / Very / Thank you for your questionnaire. To improve this 'Error function Calculator', please fill in questionnaire.
|