carg - chung-leong/qb GitHub Wiki

carg - Argument of complex number

float carg( float[2] $z )

carg() returns the argument complex number z.

Parameters:

z - The number to process. It can be one two-element array or an array of two-element arrays. z[0] should contain the real part and z[1] should contain the imaginary part.

Return Value:

The absolute value of z. If z is a multidimensional array, the return value will be an array whose size is the number of subarrays in z.

Version

1.0 and above.