-
Notifications
You must be signed in to change notification settings - Fork 14
cabs
Chung Leong edited this page Jan 10, 2022
·
4 revisions
cabs - Absolute value of complex number
float cabs( float[2] $z )
cabs() returns the absolute value of complex number z.
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.
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.
1.0 and above.