complx.Polar() Function in Golang With Examples
complx.Polar() Function in Golang returns the absolute value r and phase θ of x. The phase θ will be in the range [-Pi, Pi]. Syntax: func Polar(x complex128) (r, θ float64) Here, x is a complex number. Return Value: The return value is in the range [-Pi, Pi]. Example 1: // Golang p