c语言中如何用指向函数求正余弦的值? include<;stdio.h>;#include<;math.h>;void main(){ double x,term,sum,x2;int i;printf(\"请输入弧度x的值:\");scanf(\"%lf\",&x);x2=x*x;sum=1.0;term=1.0;for(i=2;i;i=i+2){ 。
求c语言高手指教:求余弦函数。为什么运行没有结果?谢谢#include stdio.h#include math.h double funcos(double e,double x);int main(void){ int repeat,ri;。
C语言求余弦 includeincludemain(){int x,n;scanf(\"%d\",&n);x=n;printf(\"%.4f\",cos(x));getch();}