Home > @josh-brown/vector > ComplexNumberOperations
Implements the basic ScalarOperations on ComplexNumbers
Signature:
export declare class ComplexNumberOperations extends ScalarOperations<ComplexNumber> Extends: ScalarOperations<ComplexNumber>
|
Method |
Modifiers |
Description |
|---|---|---|
|
Returns the sum of two scalars | ||
|
Returns the complex conjugate of a scalar. | ||
|
Tests if the scalars are equal. Implementors should ensure that the operation is reflexive, associative, and transitive. | ||
|
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. | ||
|
Returns an instance of the scalar type which most accurately corresponds to the value of | ||
|
Returns the unique scalar that, when added to another scalar, returns that scalar | ||
|
Returns the unique value that, when added to | ||
|
Returns the unique scalar that, when multiplied by another scalar, returns that scalar | ||
|
Returns the unique scalar that, when multiplied by | ||
|
Returns the principal square root of a scalar. | ||
|
Returns the product of two scalars | ||
|
Returns the norm (absolute value or magnitude) of a scalar | ||
|
Returns a readable string that represents the value of the scalar | ||
|
Returns a random scalar value between | ||
|
Returns a random scalar value from a normal distribution centered on |