再c語言中使用三角函數

我想在c++中使用三角函數ex.sin,cos,tan,我上網找過,可是都是利用它來證明三角函數,請問一下要如何輸入這些sin,cos,tan?
2013-04-12 22:00 發佈
加入 #include <math.h>
搜尋 math.h 就可以找到一些範例

/* sin example */
#include <stdio.h>
#include <math.h>

#define PI 3.14159265

int main ()
{
double param, result;
param = 30.0;
result = sin (param*PI/180);
printf ("The sine of %lf degrees is %lf.\n", param, result );
return 0;
}
本生物已配置全天候戰鬥系統~ 手機不通、Skype 離線時,請託夢,或留言!
謝謝,有問題在問嘍
twlawrenceko wrote:
我想在c++中使用三...(恕刪)
內文搜尋
X
評分
評分
複製連結
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?