vendor/markbaker/complex/classes/src/functionstheta.php

Function code for the complex theta() function

Functions

theta()

theta(\Complex\Complex|mixed  $complex) : float

Returns the theta of a complex number.

This is the angle in radians from the real axis to the representation of the number in polar coordinates.

Parameters

\Complex\Complex|mixed $complex

Complex number or a numeric value.

Throws

\Complex\Exception

If argument isn't a valid real or complex number.

Returns

float —

The theta value of the complex argument.