Question: 1 . 2 3 Use the first seven terms in cos ( x ) = 1 - x ^ 2 / 2 ! + x

1.23 Use the first seven terms in cos(x)=1- x^2/2!+x^4/4!- x^6/6!+ x^8/8!- x^10/10!+..... to calculate an estimated value of e. Determine the true relative error. For the exact
value of e, use exp(1) in Python.
Hint:
# Python sript
import numpy as np
np.set_printoptions(precision=15)
e=np*exp(1)
print(e)

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!