当前位置:编程学习 > C#/ASP.NET >>

谁能给我解释一下这个程序?

Write a program, that after the entering of a real number  x  and a real number  eps (the accuracy) computes 
 the value for sin_x  (until  |Term(n)|<eps complies) , using factoring over  n terms. 
 Print  x,  sin_x, sin(x) and the n-th term. Use functions Fac() and Term() according to:

 sin_x = Term1 + Term2 + Term3 + …  =  x - x3/3! + x5/5! - x7/7! + ….     [ example:  Fac(3) = 1.2.3 ]


谁能解释一下这个程序?同时用最基础的loop写这个程序。谢谢  --------------------编程问答-------------------- up --------------------编程问答-------------------- mark --------------------编程问答-------------------- 这只是一个需求,哪里是什么程序。。。。。无非是一个用泰勒公式逼近法近似求正弦值。

描述有问题,x3要换成x^3才行,后面以此类推。。。

去市面上弄本C语言习题集,里面肯定有相关的例子。注意一下精度限制就可以了。。。 

无非是套了一个英文壳在上面 --------------------编程问答-------------------- up 
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,