0% found this document useful (0 votes)
33 views3 pages

Numerical Methods c2/10

1) Horner's scheme provides an efficient way to evaluate polynomials by transforming higher-order multiplications into successive additions and multiplications by the variable. 2) A function is analytic at a point if it can be expressed as a Taylor series, where the Taylor polynomial approximates the function and the remainder estimates the error of the approximation. 3) The Taylor series expansion of the exponential function e^x is its defining property, with the terms of the polynomial calculated recursively to build up the approximation.

Uploaded by

Iustin Cristian
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views3 pages

Numerical Methods c2/10

1) Horner's scheme provides an efficient way to evaluate polynomials by transforming higher-order multiplications into successive additions and multiplications by the variable. 2) A function is analytic at a point if it can be expressed as a Taylor series, where the Taylor polynomial approximates the function and the remainder estimates the error of the approximation. 3) The Taylor series expansion of the exponential function e^x is its defining property, with the terms of the polynomial calculated recursively to build up the approximation.

Uploaded by

Iustin Cristian
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Course 2 Chapter 2.

THE EVALUATION OF THE FUNCTIONS The way of writing certain formulae is essential because equivalent mathematic expressions may stay at the basis of certain algorithmic representations which lead to different numeric results. That is why, it has to be held under control the situation of the propagation of errors, which may lead to inacceptable results. 1. The evaluation of the polynominals. Horners scheme As given the polynominal P ( X ) = a 0 X n + a1 X n 1 + ... + a n 1 X + a n , ai R, i = 0, n . Giving common factor for many times the polynominal may be brought under another form, for example: P ( X ) = a0 X n + a1 X n 1 + ... + an 1 X + an =

= (a0 X n 1 + a1 X n 2 + ... + an 2 X + an 1 ) X + an = = (( a0 X n 2 + a1 X n 3 + ... + an 3 X + an 2 ) X + an 1 ) X + an = = ... = = (...((( a0 X + a1 ) X + a2 ) X + a3 ) X + ... + an 1 ) X + an


Thus, for calcalating P () we have: P ( ) = (...((a 0 + a1 ) + a 2 ) + ... + a n 1 ) + a n . Then we succesively calculate the numbers:

b0 = a0 b = a + a = b + a 1 0 1 0 1 b2 = ( a0 + a1 ) + a2 = b1 + a2 ... bi = bi 1 + ai , i = 1, 2,..., n. we get to the relation bn = P ( ) .


Observations: 1) The initial operations of raising to a higher power were transformed into multiplication operations which can be done more quickly and more precisely. 2) The numbers b0 , b1 ,..., bn 1 are the coefficients of the polynominal Q(X) of the division X of the polynominal P(X) at ( ), and bn is the rest of the division, that means P ( X ) = ( X )Q( X ) + bn , where, according to Hornerss scheme, we have Q( x) = b0 X n 1 + b1 X n 2 + ... + bn 2 X + bn1 and the rest R = bn = P ( ) . Xn a0 X n1 a1 b0 + a1 b1 X n2 a2 b1 + a2 b2 ...... X3 an 3 bn 4 + an 3 bn 3 X2 an 2 bn 3 + an 2 bn 2 X1 an 1 bn 2 + an 1 bn 1 X0 an bn 1 + an bn

a0 b0

2. The evaluation of the analytic functions Definition 1: We may say that a function f is analytic at the point if it can be developed in Taylor series around this point, meaning: f ( ) f ( ) f ( n ) ( ) f ( x) = f ( ) + ( x ) + ( x )2 + ... + ( x ) n + ... = ti ( x) 1! 2! n! i =0 () x so that x < R . We have: t0 ( x) = f ( ) , t1 ( x) = ( x ) f ' ( ) f '' ( ) f ( n ) ( ) , t2 ( x) = ( x ) 2 ,...., tn ( x) = ( x ) n , 1! 2! n!
n i =0 i = n +1

so f ( x) = Tn ( x ) + Rn ( x) , where Tn ( x) = ti ( x) and Rn ( x ) =

t ( x) .
i

The partial sum of degree n of Taylor series is called Taylor polynominal of degree n , Tn ( x) , and Rn ( x) = f ( x) Tn ( x) is called the rest of degree n. The rest of degree n, Rn ( x) = f ( x) Tn ( x) , represents the error resulted by the replacement of function f(x) with the Taylor polynominal of degree n, Tn ( x) . Having in mind that for a convergent series the distortion error does not exceed the absolute value the last term taken into consideration , meaning Rn ( x) t n ( x ) , then t n ( x ) gives practical estimations for the absolute error and for the relative error:

(n)

= tn ( x ) , r

(n)

t ( x) (n) = = n . Tn ( x) Tn ( x )

Example: The development in Taylor series of the function f ( x) = e x is: x0 ' ( x 0) 2 '' ( x 0) n ( n ) f ( x) = e x = f (0) + f (0) + f (0) + ... + f (0) + ... 1! 2! n! x x2 xn x f ( x) = e = 1 + + + ... + + ... 1! 2! n! i x f ( x) = e x = i =0 i !
xi The convergent for ( ) x R , where Tn ( x ) = ti ( x) , for which t i ( x) = .
i =0 n

i!

Having in mind the relation between the two succesive terms, it is convenient to be made the calculus of the Taylor polynominal using the recurrent scheme:

t0 = f (0) = e0 = 1 t = x = x 1 1! 1 2 2 t2 = x = x = x x = x t1 2! 1 2 1 2 2 3 3 2 t = x = x = x x = x t2 3 3! 1 2 3 2! 3 3 ... x ti = ti 1 i

T0 = t0 = 1 T1 = t0 + t1 = T0 + t1 T2 = t0 + t1 + t2 = T1 + t2 T3 = t0 + t1 + t2 + t3 = T2 + t3 ... Ti = Ti 1 + ti

with i=1,2,...n,... The iterative process continues until the relative error becomes smaller than a precise value , that means tn Tn .

You might also like