ComplexRootsX<T extends Complex> extension

ComplexRootsX

ComplexRootsX

Computes the n-th roots of this complex number.

The nth roots are defined by the formula:

z_k = abs^(1/n) (cos(phi + 2πk/n) + i (sin(phi + 2πk/n))

for k=0, 1, ..., n-1, where abs and phi are respectively the modulus and argument of this complex number.

If one or both parts of this complex number is NaN, a list with just one element, nan is returned. If neither part is NaN, but at least one part is infinite, the result is a one-element list containing infinity.

on
  • T

Methods

nthRoot(int n) List<Complex>
ComplexRootsX