cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to solve exp
How to solve exp
Oct 23, 2009 at 11:08pm UTC
assaado
(7)
What the is the best way to compute the formula down below in C++:
e^x = 1 + x/1! + x^2/2! + x^3/3! + ....
I just need keynotes from an expert in order to code it from my end.
Thanks in advance
Oct 24, 2009 at 1:34am UTC
Duthomhas
(13206)
Use a loop. All you need to know for input is how many times you want to run through the loop before returning a value for e
x
.
BTW, that's not how you calculate
e
.
http://www.math-magic.com/approx/e.htm
Good luck!
Topic archived. No new replies allowed.