0
I need to program a simple task! That is computing the value of (1+x)e^x.
using the equation 1 + 2x/1! + 3x²/2! + 4x³/3! add terms to the sum of the series as long as absolute value of the current term is greater than given tolerance. and count number of terms must compute new term as the old term multiplied by an expression, independent calculation is not allowed. tolerance = 1e-17 and x=1. i found this in my textbook but cant do it. i am getting infinite loop. thanks
2 Respuestas
+ 2
There you go. You use a while loop and you're good :P
https://code.sololearn.com/cw0qf78DeVhd/?ref=app
+ 1
thanks a lot