Home > @josh-brown/vector > ComplexNumberOperations > fromComplex
Returns an instance of the scalar type from its real and imaginary parts. If the scalar type does not support complex numbers, then an error will be thrown.
Signature:
fromComplex(real: number, imag: number): ComplexNumber;|
Parameter |
Type |
Description |
|---|---|---|
|
real |
number | |
|
imag |
number |
Returns:
The scalar