Question: Use GOOGLE COLAB PYTHON to get table Example 4.1 Error Estimates in Iterative Methods Problem Statement In mathematics, functions can often be represented by infinite

Use GOOGLE COLAB PYTHON to get table

Example 4.1

Error Estimates in Iterative Methods Problem Statement In mathematics, functions can often be represented by infinite series. For example, the exponential function can be computed, approximately, using

e^x 1 + x +x^2/2! +x^3/3! + +x^n!

NEED CODE to get exact TABLE!!!

that must include both t% a%

Use GOOGLE COLAB PYTHON to get table Example 4.1 Error Estimates in

I found t% but can't seem how to do t% I NEED a% Code

Iterative Methods Problem Statement In mathematics, functions can often be represented by

\begin{tabular}{clll} Terms & \multicolumn{1}{c}{ Result } & t,% & a,% \\ \hline 1 & 1 & 39.3 & \\ 2 & 1.5 & 9.02 & 33.3 \\ 3 & 1.625 & 1.44 & 7.69 \\ 4 & 1.645833333 & 0.175 & 1.27 \\ 5 & 1.648437500 & 0.0172 & 0.158 \\ 6 & 1.648697917 & 0.00142 & 0.0158 \end{tabular} import math approx =1 i=1 x=0.5 org=math.exp (x) t=0 print('Term Results t,%) print('----------------------------') while True: err=math.fabs(approx-org)/org*100 if err break t+=1 print(t,' ' ,round(approx, 6), approx+= (xi)/math.factorial(i) i+=1 \begin{tabular}{clll} Terms & \multicolumn{1}{c}{ Result } & t,% & a,% \\ \hline 1 & 1 & 39.3 & \\ 2 & 1.5 & 9.02 & 33.3 \\ 3 & 1.625 & 1.44 & 7.69 \\ 4 & 1.645833333 & 0.175 & 1.27 \\ 5 & 1.648437500 & 0.0172 & 0.158 \\ 6 & 1.648697917 & 0.00142 & 0.0158 \end{tabular} import math approx =1 i=1 x=0.5 org=math.exp (x) t=0 print('Term Results t,%) print('----------------------------') while True: err=math.fabs(approx-org)/org*100 if err break t+=1 print(t,' ' ,round(approx, 6), approx+= (xi)/math.factorial(i) i+=1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!