The sin() function for complex number is defined in the complex header file.This function is the complex version of the sin() function. This function is used to calculate the complex sine of complex number z. This function returns the sine of complex number z.
- z: This method takes a mandatory parameter z which represents the complex number.
Return value: This function returns the sin() of complex number z.
Below programs illustrate the sin() function in C++:
The sin of (0,1) is (0,1.1752)
The sin of (1,0) is (0.841471,0)
- abs() function for complex number in c++
- sqrt() function for complex number in C++
- cosh() function for complex number in C++
- polar() function for complex number in C++
- Number which has the maximum number of distinct prime factors in the range M to N
- C++ Program for How to check if a given number is Fibonacci number?
- How to call some function before main() function in C++?
- Public vs Protected in C++ with Examples
- Generate a number such that the frequency of each digit is digit times the frequency in given number
- max() function for valarray in C++
- real() function in C++
- imag() function in C++
- nearbyint() function in C++
- tellg() function in C++ with example
- gmtime() Function in C/C++
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.