Skip to content

Latest commit

 

History

History
273 lines (119 loc) · 2.68 KB

File metadata and controls

273 lines (119 loc) · 2.68 KB

Home > @josh-brown/vector > ComplexNumber

ComplexNumber class

A number of the form _a + bi_ where _i_ is the imaginary unit.

Signature:

export declare class ComplexNumber 

Constructors

Constructor

Modifiers

Description

(constructor)(real, imaginary)

Constructs a new instance of the ComplexNumber class

Properties

Property

Modifiers

Type

Description

I

static

readonly

ComplexNumber

NEG_ONE

static

readonly

ComplexNumber

ONE

static

readonly

ComplexNumber

ZERO

static

readonly

ComplexNumber

Methods

Method

Modifiers

Description

add(other)

conjugate()

equals(other)

getAdditiveInverse()

getImaginaryPart()

getMultiplicativeInverse()

getRealPart()

multiply(other)