for loop to make a taylor series
Show older comments
I am trying to make a taylor series for e^x where
e^x = 1+(X/1!)+((X^2)/2!)+((X^3)/3!)+...
and the approximation is sum set n-1 over k=0 f(x)=(x^k)/k!
I know that the k = input('number of terms: '); and x = input('value of "x":');
I know that i can use the factorial(k) as a portion of the approxamation section of this script.
Accepted Answer
More Answers (1)
A new to matlab

Categories
Find more on MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!