Predefined Functions – arg

Function name: arg – Calculate angle
Synopsis: arg(x)


Input data type Output data type
real real
complex real
quaternion unsupported

Description:

atan2 and arg are the same functions. If the input value is real, then it first gets converted to a complex number by setting the imaginary value to 0. Positive real values lead to 0, negative real values lead to p.

This function calculates the angle of the complex number. The result is between -p (exclusive)and p (inclusive)

ChaosPro atan2 arg

arg