
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
asin Function for Complex Number in C++
Here we will see the asin() method for the complex numbers. The complex numbers can be used using complex header file. In that header file the asin () function is also present. This is complex version of normal asin () function. This is used to find complex arc sine of a complex number.
This function takes a complex number as input parameter, and returns the arc sine as output. Let us see one example to get the idea.
Example
#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); }
Output
The asin() of (5,2) is (1.18423,2.37055)
Advertisements