qat.core.variables.angle

qat.core.variables.angle(number)

Angle (in radians) of a number in the complex plane.

from qat.core.variables import angle

print(angle(3))
print(angle(2j))
print(angle(-1))
0.0
1.5707963267948966
3.141592653589793
Parameters

number (Variable or ArithExpression or number) – real or complex number

Returns

angle value in radians

Return type

ArithExpression or number