Truncation Error Calculator

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:

Truncation Error Calculator

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-10] /20Disp-Num
[1] 2020/09/29 02:51 Male / 20 years old level / High-school/ University/ Grad student / Useful /
Purpose of use
calculate basic error fonctions
[2] 2020/06/20 22:55 Male / Under 20 years old / High-school/ University/ Grad student / Useful /
Purpose of use
Calculating the Φ function in probability
[3] 2020/05/03 16:34 Male / 20 years old level / High-school/ University/ Grad student / Very /
Purpose of use
evaluating an integral to compare the results with monte carlo integration
[4] 2019/05/12 06:36 Male / 20 years old level / High-school/ University/ Grad student / Useful /
Purpose of use
checking an algorithm in python that computes erf(x) and it error using taylor series and lagrange error bound. got a difference of e-16 order.
[5] 2017/09/23 12:11 Male / 40 years old level / An engineer / Useful /
Purpose of use
error investigastion
Comment/Request
What is this value 't' in this function.? I didn't find any explanation anywhere
[6] 2017/08/18 01:45 Male / 50 years old level / An engineer / Useful /
Purpose of use
For a side problem in nonlinear curve fitting. I didn't feel like using Excel
[7] 2016/05/19 13:56 Male / 20 years old level / High-school/ University/ Grad student / - /
Purpose of use
academic assignment
Comment/Request
huh, i was using this to check an assignment using a taylor series approximation and i think i found a misprint in my textbook's function when i checked it against this and another source's taylor series approximation
[8] 2015/06/11 04:14 Female / 40 years old level / An engineer / Useful /
Purpose of use
I wanted to verify that I was using the Excel 'erf.precision' function correctly, so I used this website to cross-check the Excel result.
[9] 2015/06/02 18:10 Male / 20 years old level / An engineer / Very /
Purpose of use
Use to check my own error function calculator. Amassed to see almost the same results.
Slight differences after 6 decimal, which i want to believe aren't a big deal.
Comment/Request
I would also want to know the exact formulas used.... especially for numbers greater than 5.
[10] 2014/12/09 06:27 Female / 20 years old level / High-school/ University/ Grad student / Very /
Comment/Request
hello
I want to ask about error function how I can find the error function if it was mulitiyplay by value like erf(tX)
and thank you very much

Thank you for your questionnaire.
Sending completion

To improve this 'Error function Calculator', please fill in questionnaire.
The hyperlink to [Error function]