Constructors
constructor
- new Monomial(coef?: number | Fraction, exp?: Float64Array, vars?: string[]): Monomial
-
Parameters
-
coef: number | Fraction = 0
-
exp: Float64Array = ...
-
vars: string[] = ...
Properties
Private coef
coef: Fraction
Private exp
exp: Float64Array
Private vars
vars: string[]
Methods
divides
- divides(m: Monomial): boolean
-
Returns boolean
equalCoef
- equalCoef(m: Monomial): boolean
-
Returns boolean
equalExponent
- equalExponent(m: Monomial): boolean
-
Returns boolean
equals
- equals(m: Monomial): boolean
-
Returns boolean
ge
- ge(m: Monomial): boolean
-
Returns boolean
getCoef
- getCoef(): Fraction
-
Returns Fraction
getExp
- getExp(): Float64Array
-
Returns Float64Array
getVars
- getVars(): string[]
-
Returns string[]
insertVariables
- insertVariables(newVars: string[], pos?: number): void
-
Parameters
-
newVars: string[]
-
pos: number = 0
Returns void
isOne
- isOne(): boolean
-
Returns boolean
isZero
- isZero(): boolean
-
Returns boolean
le
- le(m: Monomial): boolean
-
Returns boolean
pushVariables
- pushVariables(newVars: string[]): void
-
Returns void
removeVariables
- removeVariables(oldVars: string[]): void
-
Returns void
sameVars
- sameVars(m: Monomial): boolean
-
Returns boolean
setCoef
- setCoef(coef: number | Fraction): void
-
Returns void
setExp
- setExp(exp: Float64Array): void
-
Returns void
toString
- toString(showProductChar?: boolean): string
-
Parameters
-
showProductChar: boolean = false
Returns string
Represents a monomial in the ring R<t,x,y,z> or any other variables specified