C++ 中複數的 asin() 函式?
本文件將介紹複數的 asin() 方法。複數可以使用 complex 標頭檔案。該標頭檔案中還包含 asin() 函式。這是 normal asin() 函式的複雜版本。該函式用於找到複數的複雜反正弦值。
此函式以複數作為輸入引數,並返回反正弦值作為輸出。下面提供一個示例供參考。
示例
#include<iostream>
#include<complex>
using namespace std;
int main() {
complex<double> c1(5, 2);
//asin() function for complex number
cout << "The asin() of " << c1<< " is "<< asin(c1);
}輸出
The asin() of (5,2) is (1.18423,2.37055)
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP