Increment equation

closed account (28UMizwU)
How could I use for loops to write out this equation?
F(x)=x-x^((1+2)/(1+2)!)+x^((3+2)/(3+2)!)-x^((5+2)/(5+2)!)+ etc
the number of terms would be user inputted as well as x itself


Are you sure that you've bracketed terms in your equation correctly? I would be surprised if terms had x raised to those entire powers. I would expect that each term would have x raised to an integer power, and then the whole would be divided by the factorial. In that case it would be the series for sin(x).

You also have a record of deleting posts after people have given you an answer. Please don't do that.

Post your attempt (after checking your equation) and maybe someone will look at it.
Last edited on
How could I use for loops to write out this equation?
F(x)=x-x^((1+2)/(1+2)!)+x^((3+2)/(3+2)!)-x^((5+2)/(5+2)!)+ etc
the number of terms would be user inputted as well as x itself
Please don't delete your post once you get an answer.
Topic archived. No new replies allowed.