CPP MCQ
What is the use of proj() function in C++?
A)
Used to calculate the projection of a complex number
B)
Used to calculate the argument of a complex number
C)
Used to calculate the conjugate of a complex number
D)
Used to calculate the negative of a complex number

Correct Answer : Option (A) :   Used to calculate the projection of a complex number

Explanation :

The proj() function is a built-in function and is defined in the complex header file. This function is used to find the projection of complex number z onto the Riemann sphere.
 
Syntax :
template <class T> complex<T> 
proj (const complex<T>& z);