By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,667 Members | 2,073 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,667 IT Pros & Developers. It's quick & easy.

A c++ prog 4to enter an integer & print its total value based on followin formula

P: 1
A c++ prog to enter an integer & print its total value based on followin formula
x-1/3!*3+1/5!*5-1/7!*7+1/9!*9
Aug 13 '10 #1
Share this Question
Share on Google+
1 Reply


100+
P: 687
You missed powers of x in this taylor series. (1-(x**3)/3! + ... ) Also, does your homework read verbatim that x should be integer? It should rather be float.
Aug 13 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.