cabs - chung-leong/qb GitHub Wiki
cabs - Absolute value of complex number
float cabs( float[2] $z )
cabs() returns the absolute value of 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.