Skip to content

Latest commit

 

History

History
68 lines (32 loc) · 971 Bytes

File metadata and controls

68 lines (32 loc) · 971 Bytes

Home > @josh-brown/vector > ComplexNumberOperations > fromComplex

ComplexNumberOperations.fromComplex() method

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;

Parameters

Parameter

Type

Description

real

number

imag

number

Returns:

ComplexNumber

The scalar