c+ +三角函数_C ++中的三角函数
生活随笔
收集整理的這篇文章主要介紹了
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}| 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.32582Reference: C++ cmath header
參考: C ++ cmath標頭
翻譯自: https://www.includehelp.com/cpp-tutorial/trigonometric-functions.aspx
c+ +三角函數
總結
以上是生活随笔為你收集整理的c+ +三角函数_C ++中的三角函数的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 夏普电视常见的故障?
- 下一篇: 飞利浦电视键盘数字如何输