阅读背景:

为什么我的程序不能打印正确的值?

来源:互联网 

I wrote this program that should calculate the sin of a number, and when I input the values 1.57 on the x value and 0.00005 on the tolerance value, it should say: "The sin of 1.57 is 1.000003.", but instead it prints: "The sin of 1.57 is 0.000000." I've tried adding random floats (like multiplying by 1.0) on all of the formulas, but nothing. I'm running a clang compiler on a linux environment, if that helps. any help would be appreciatedI wrote this program that should calculate the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: