: sorry i'm just mildly retarded, i had it declared as a long the entire time and didn't realise it...I have a couple methods and a lot of code in the main{} body so i didn't even notice. Thanks for all your help.
:
: I'm just confused now how I get all of the numbers to add up. Value = 1, then -0.5, then 0.04661. (theres alot more). But if its inside a for loop I'm not sure how to add them up, Term 1 = 1, term 2 = 1 + (-0.5), Term 3 (Term 2 + 0.04661); But i'm somewhat lost. I thought it was simple but everything i've tried fails.
:
I would use a function to calculate the terms based on some counter:
double taylor = 0;
for (int i = 0; i < Max; i++) {
taylor = taylor + term(i);
}