![]() |
VOOZH | about |
We introduced and discussed the concept in Complex numbers in C++ | Set 1
The remaining functions with example are discussed here:
The log of (-1,0) is (0,3.14159)Time Complexity: O(1)
Auxiliary Space: O(1)
cos z = (e^(iz) + e^(-iz))/2 sin z = (e^(iz) - e^(-iz))/2itan z = i(e^(-iz) - e^(iz)) / (e^(-iz) + e^iz)The cos of (0,1) is (1.54308,-0)
The sin of (0,1) is (0,1.1752)
The tan of (0,1) is (0,0.761594)
Time Complexity: O(1)
Auxiliary Space: O(1)
cosh(z)=(e^z+e^(-z))/2 sinh(z)=(e^z-e^(-z))/2.tanh(z)=(e^(2z)-1)/(e^(2z)+1)cosh(1.000000,0.000000) = (1.543081,0.000000) (cosh(1) = 1.543081)
sinh(1.000000,0.000000) = (1.175201,0.000000) (sinh(1) = 1.175201)
tanh(1.000000,0.000000) = (0.761594,0.000000) (tanh(1) = 0.761594)
cosh(0.000000,1.000000) = (0.540302,0.000000) ( cos(1) = 0.540302)
sinh(0.000000,1.000000) = (0.000000,0.841471) ( sin(1) = 0.841471)
tanh(0.000000,1.000000) = (0.000000,1.557408) ( tan(1) = 1.557408)
Time Complexity: O(1)
Auxiliary Space: O(1)