This Python 2.7 program, takes two inputs, x and n from a user and then evaluates the numerical value of Taylor's series for the exponential function. In the program, x indicates the power of e and n represents the number of terms to be included from the Taylor's series expansion. Furthermore, the program also prints the absolute value of the percentage error in the Taylor's approximation.
The output and input of the program appears as:
The output and input of the program appears as:
Comments
Post a Comment