日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

c+ +三角函数_C ++中的三角函数

發布時間:2023/12/1 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 c+ +三角函数_C ++中的三角函数 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

c+ +三角函數

C ++三角函數 (C++ Trigonometric functions)

Trigonometric functions are also called circular functions or angle functions or goniometric functions, which are used to trigonometric computations like computing cosine, sine, tangent values.

三角函數也稱為圓函數或角度的功能或測角函數 ,其用于三角函數的計算等計算余弦,正弦,正切值。

三角函數列表 (List of trigonometric functions)

Here is the list of all trigonometric functions with descriptions and their syntaxes,

這是所有三角函數及其說明和語法的列表,

#myInput{width:100%;font-size:16px;padding:12px 20px 12px 40px;border:1px solid #ddd;margin-bottom:12px}#myTable{border-collapse:collapse;width:100%;border:1px solid #ddd;font-size:18px}#myTable td,#myTable th{text-align:left;padding:2px}#myTable tr{border-bottom:1px solid #ddd}#myTable tr.header,#myTable tr:hover{background-color:#f1f1f1}#myTable a,#myTable a:visited{color:#00f;text-decoration:none}#myTable a:hover{text-decoration:underline} #myInput{width:100%;font-size:16px;padding:12px 20px 12px 40px;border:1px solid #ddd;margin-bottom:12px}#myTable{border-collapse:collapse;width:100%;border:1px solid #ddd;font-size:18px}#myTable td,#myTable th{text-align:left;padding:2px}#myTable tr{border-bottom:1px solid #ddd}#myTable tr.header,#myTable tr:hover{background-color:#f1f1f1}#myTable a,#myTable a:visited{color:#00f;text-decoration:none}#myTable a:hover{text-decoration:underline} Trigonometric functionsDescriptionSyntax
cos()It returns the cosine of an angle of x radians.cos(x)
sin()It returns the sine of an angle of x radians.sin(x)
tan()It returns the tangent of an angle of x radians.tan(x)
acos()It returns the arc cosine of x in radians.acos(x)
asin()It returns the arc sine of x in radians.asin(x)
atan()It returns the arc tangent of x in radians.atan(x)
atan2()It returns the arc tangent of y/x in radians.atan2(y,x)
三角函數 描述 句法
cos() 它返回x弧度角的余弦值。 cos(x)
罪() 它返回x弧度角的正弦。 sin(x)
tan() 它返回x弧度角的切線。 tan(x)
acos() 它以弧度返回x的反余弦值。 acos(x)
asin() 它以弧度返回x的反正弦值。 asin(x)
曬黑() 它以弧度返回x的反正切。 阿坦(x)
atan2() 它以弧度返回y / x的反正切。 atan2(y,x)

C ++代碼演示三角函數示例 (C++ code to demonstrate example of trigonometric functions)

// C++ code to demonstrate the example of // trigonometric functions#include <iostream> #include <cmath> using namespace std;// main() section int main() {float x;float y;x = 0.25;cout<<"cos("<<x<<") : "<<cos (x)<<endl;cout<<"sin("<<x<<") : "<<sin (x)<<endl;cout<<"tan("<<x<<") : "<<tan (x)<<endl;cout<<"acos("<<x<<"): "<<acos(x)<<endl;cout<<"asin("<<x<<"): "<<asin(x)<<endl;cout<<"atan("<<x<<"): "<<atan(x)<<endl;y = 1.0;cout<<"atan2("<<y<<","<<x<<"): "<<atan2(y,x)<<endl; return 0; }

Output

輸出量

cos(0.25) : 0.968912 sin(0.25) : 0.247404 tan(0.25) : 0.255342 acos(0.25): 1.31812 asin(0.25): 0.25268 atan(0.25): 0.244979 atan2(1,0.25): 1.32582

Reference: C++ cmath header

參考: C ++ cmath標頭

翻譯自: https://www.includehelp.com/cpp-tutorial/trigonometric-functions.aspx

c+ +三角函數

總結

以上是生活随笔為你收集整理的c+ +三角函数_C ++中的三角函数的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。