questions

consider the following equations
sum=x+(x^2/2!)+(x^3/3!)+.......+(x^n/n!)
write a program in object oriented programming to find the sum of the nth term and the sum of all the values
This is an infinite series such as a Taylor expansion. I wrote a similar program for calculating the normal probability.

That said, I, nor most posters here, will give you their code without you first having made a sincere effort to answer your own question. Show us the code you already have and state where you are having difficulty.

If you don't know where to start, then start at the beginning! Write a summary of what the program needs to do. Draw a flowchart of how your variable 'x' enters your program, what happens to it, and how it exits your program. Write pseudo code. Finally write c++ code.

My hint is that you need a loop.
Make that two (nested) loops, if you use one for the exponent.
Last edited on
Thanks for assistance i will write the code the paste then see if you can assist where am stuck. anyway thanks a lot for the hint.
Topic archived. No new replies allowed.