Skip to content
munrocket edited this page Sep 14, 2018 · 20 revisions

If you want to avoid mutation you need to clone it before usage.

XY = D.mul22(D.clone(X), Y)

Mutatatable variable tagged with exclamation mark (!)

Description Static method Instance method
Constructors new D([a, b])
-//- D.clone(X)
-//- D.fromSum11(a, b)
-//- D.fromMul11(a, b)
-//- D.fromSqr1(a)
-//- D.fromNumber(number)
-//- D.fromString(string)
Converters X.toNumber()
-//- X.toExponential(precision)
Addition D.add22(X!, Y) X.add(Y)
-//- D.add21(X!, a) -//-
Subtraction D.sub22(X!, Y) X.sub(Y)
-//- D.sub21(X!, a) -//-
Multiplication D.mul22(X!, Y) X.mul(Y)
-//- D.mul21(X!, a) -//-
Mult. to a=2^n D.mul21pow2(X!, a)
Division D.div22(X!, a) X.div(Y)
-//- D.div21(X!, a) -//-
Power D.pow22(X!, Y) X.pow(Y)
Power of integer D.pow21n(X!, n)
Absolute value D.abs2(X!) X.abs()
Negate D.neg2(X!) X.neg()
Inverse D.inv2(X!) X.inv()
Square D.sqr2(X!) X.sqr()
Square root D.sqrt2(X!) X.sqrt()
Exponential fn. D.exp2(X!) X.exp()
Natural logarithm D.ln2(X!) X.ln()
Hyperbolic sine D.sinh2(X!) X.sinh()
Hyperbolic cosine D.cosh2(X!) X.cosh()
Equals D.eq22(X, Y) X.eq(Y)
-//- D.eq21(X, a) -//-
Not equal D.ne22(X, Y) X.ne(Y)
-//- D.ne21(X, a) -//-
Greater than D.gt22(X, Y) X.gt(Y)
-//- D.gt21(X, a) -//-
Greater or equal D.ge22(X, Y) X.ge(Y)
-//- D.ge21(X, a) -//-
Less than D.lt22(X, Y) X.lt(Y)
-//- D.lt21(X, a) -//-
Less or equal D.le22(X, Y) X.le(Y)
-//- D.le21(X, a) -//-

Clone this wiki locally