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%

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

\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
Get step-by-step solutions from verified subject matter experts
