Can someone create the coding for the below and let me know what is your price:
PROGRAM
As you know any function can be expanded according to Taylor expansion.
For example the cosine of x can be written as
cos x= 1- x^2/2 + x^4/4! + ...+(-1)^nx^2n/2n!
Write a program that evaluates in a loop the first 5 terms for x= sqrt 2/2 and add them together and compare the result to the actual value
Create a function(subroutine) that calculate a generic n term for a generic x. Use this function in a loop to evaluate the terms and add them together. Finally compare the result to the real result using the cox(x) function in C++
It is but why did you answer when I clearly posted it as DONE and SOLVED.
My coding did not come out after it, but I decided to sit through the night to get it done myself. Immediately when i got it and it worked, I posted this is solved and there was no one on here yet as of yesterday. Today I see you. Didn't you see that it was clicked as solved.
It is actually not. Do not post your homework for us to here on this forum, even if you solve it yourself. it is cheating, and is against most if not all classes, and not appreciated nor generally accepted here on cplusplus.com