用C语言编写sinx的近似值,精确到10^(-6)
sinx=x-x^3/3!+x^5/5!-x^7/7!+…+
人气:220 ℃ 时间:2020-02-03 07:48:21
解答
给,已经编译运行确认:#include #include #include double Factorial(int n) //求?乘 { int i=0; double factorical=1; if(n==0) return 1; for(i=1;i 1e-6){sum += t;++m;sign *= -1;}return sum;}int main(){doubl...
推荐
猜你喜欢
- Everything is kind of pink.is kind of
- 点A(2,-3)关于轴对称的点的坐标为----------,关于原点对称的坐标为
- 请问软弱,不坚强的词语是什么
- 两方坚持对立,互不相让的四字词语是
- 已知向量a、b、c 、d满足:a模等于1,b模等于根号2,b在 a上的投影为1/2 ,向量a-c与向量b-c垂直
- 一筐苹果连筐中60千克,卖掉五分之二后,连筐重30千克,问着筐苹果净重多少千克
- in much the same way
- 关于学习的古人诗句,名言