taylor formula
-
i need c++ code for aprogram that find e^0.5 using taylor formula with tolerance of 0.05%. knowing that taylor formula for e^x=1+x+x2/2!+.......+x^n/n! plzzzzzzzzzz i need this code if any one could help me and thanx alot. aneet it before this monday plzzzzzzzzz
eva
-
i need c++ code for aprogram that find e^0.5 using taylor formula with tolerance of 0.05%. knowing that taylor formula for e^x=1+x+x2/2!+.......+x^n/n! plzzzzzzzzzz i need this code if any one could help me and thanx alot. aneet it before this monday plzzzzzzzzz
eva
-
i need c++ code for aprogram that find e^0.5 using taylor formula with tolerance of 0.05%. knowing that taylor formula for e^x=1+x+x2/2!+.......+x^n/n! plzzzzzzzzzz i need this code if any one could help me and thanx alot. aneet it before this monday plzzzzzzzzz
eva
I cannot guarenee its right, you will have to debug it yourself, but something to get you started #include int main(void) { double current = 1; double old = 0; int n = 1; int factorial = 1; while(fabs(current - old) > 0.05/100) { old = current; factorial *= ++n; current = pow(old, n) / factorial; } }
-
i need c++ code for aprogram that find e^0.5 using taylor formula with tolerance of 0.05%. knowing that taylor formula for e^x=1+x+x2/2!+.......+x^n/n! plzzzzzzzzzz i need this code if any one could help me and thanx alot. aneet it before this monday plzzzzzzzzz
eva
Well, you know the formula...What is your trouble about?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke