| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1331 人关注过本帖
标题:急求关于三角函数的问题
取消只看楼主 加入收藏
taotao1218
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2007-8-28
收藏
 问题点数:0 回复次数:0 
急求关于三角函数的问题
制作一个函数表实现以下内容
0<=x<=3.1415926
实现以下结果 :
x sin(x) cos(x) tan(x) exp(x)
0.000000 0.000000 1.000000 0.000000 1.000000
0.157080 0.156435 0.987688 0.158385 1.170089
0.314160 0.309018 0.951056 0.324921 1.369109
0.471240 0.453991 0.891006 0.509527 1.601979
0.628320 0.587786 0.809016 0.726545 1.874459
0.785400 0.707108 0.707105 1.000004 2.193284
0.942480 0.809018 0.587783 1.376383 2.566338



我只能一次实现一个 全部的做不出来
#include <stdio.h>
#include <math.h>
int main(void)
{
double result, x = 0.000000;
result = sin(x);
result = cos(x);
result = tan(x);
printf("The sin() of %lf is %lf\n", x, result);
printf("The cosine of %lf is %lf\n", x, result);
printf("The tan of %lf is %lf\n", x, result);
return 0;
}


请教各位了 谢谢了
搜索更多相关主题的帖子: 三角函数 sin tan cos exp 
2007-08-28 15:49
快速回复:急求关于三角函数的问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014800 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved