Approximate the exponential function et using Taylor series by defining a function exp_taylor that • takes as arguments
Posted: Wed Mar 30, 2022 9:26 am
Approximate the exponential function et using Taylor series by defining a function exp_taylor that • takes as arguments o a floating point number x, o an optional non-negative integer n default to 10, and • returns the following sum up to n terms n-1 Σ X i! i=0 where i! is the factorial of i. Answer: (penalty regime: 10, 20, ... %) 1 |