I joined these forums (in part) because I am stumped with a recent "homework" problem given to me by someone helping me learn C++. I would say I am certainly a beginner.
I need to solve the following with 10e-12 accuracy,
sinx = (xe3/3!) + (xe5/5!) - (xe7/7!) + (xe9/9!) and so on
for the value of 73 degrees. I know how to convert inputted 73 degrees to radian, but I don't know how to write out the loop for the series in order to (1) increment the factorial values (2) increment the exponent values (3) alternate signs between terms.
Help would be greatly appreciated; I intend on handing him a copy of my finished work tomorrow afternoon when I stop by his business.