for loop to make a taylor series
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
A new to matlab

Categorías
Más información sobre Mathematics en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!