pimath 0.0.120 → 0.0.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/PI.iml +7 -1
- package/.idea/shelf/Uncommitted_changes_before_Update_at_24_07_2023_15_31_[Default_Changelist]/shelved.patch +90 -0
- package/.idea/shelf/Uncommitted_changes_before_Update_at_24_07_2023_15_31_[Default_Changelist]1/shelved.patch +107 -0
- package/.idea/shelf/Uncommitted_changes_before_Update_at_24_07_2023_15_31__Default_Changelist_.xml +4 -0
- package/.idea/shelf/Uncommitted_changes_before_Update_at_24_07_2023_15_31__Default_Changelist_1.xml +4 -0
- package/LICENSE.md +1 -1
- package/dev/pimath.js +7929 -0
- package/dev/pimath.js.map +1 -0
- package/dist/{pi.js → pimath.js} +7613 -7840
- package/dist/pimath.js.map +1 -0
- package/dist/pimath.min.js +2 -0
- package/dist/pimath.min.js.map +1 -0
- package/docs/assets/main.js +58 -58
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +1367 -1280
- package/docs/classes/Logicalset.Logicalset.html +221 -212
- package/docs/classes/Polynom.Rational.html +391 -388
- package/docs/classes/Vector-1.Vector.html +494 -448
- package/docs/classes/Vector.Point.html +341 -342
- package/docs/classes/algebra_equation.Equation.html +796 -753
- package/docs/classes/algebra_linearSystem.LinearSystem.html +408 -397
- package/docs/classes/algebra_monom.Monom.html +967 -910
- package/docs/classes/algebra_polynom.Polynom.html +1281 -1260
- package/docs/classes/coefficients_fraction.Fraction.html +939 -931
- package/docs/classes/geometry_circle.Circle.html +476 -476
- package/docs/classes/geometry_line.Line.html +779 -719
- package/docs/classes/geometry_triangle.Triangle.html +429 -420
- package/docs/classes/numeric.Numeric.html +269 -263
- package/docs/classes/shutingyard.Shutingyard.html +259 -248
- package/docs/enums/algebra_equation.PARTICULAR_SOLUTION.html +89 -88
- package/docs/enums/geometry_line.LinePropriety.html +102 -102
- package/docs/enums/shutingyard.ShutingyardMode.html +106 -102
- package/docs/enums/shutingyard.ShutingyardType.html +120 -116
- package/docs/index.html +63 -65
- package/docs/interfaces/algebra_equation.ISolution.html +111 -109
- package/docs/interfaces/algebra_polynom.IEuclidian.html +93 -92
- package/docs/interfaces/geometry_triangle.remarquableLines.html +150 -150
- package/docs/modules/Logicalset.html +69 -74
- package/docs/modules/Polynom.html +69 -74
- package/docs/modules/Vector-1.html +69 -74
- package/docs/modules/Vector.html +69 -74
- package/docs/modules/algebra_equation.html +75 -81
- package/docs/modules/algebra_linearSystem.html +65 -71
- package/docs/modules/algebra_monom.html +70 -76
- package/docs/modules/algebra_polynom.html +75 -81
- package/docs/modules/coefficients_fraction.html +70 -76
- package/docs/modules/geometry_circle.html +65 -71
- package/docs/modules/geometry_line.html +70 -76
- package/docs/modules/geometry_triangle.html +70 -76
- package/docs/modules/numeric.html +65 -71
- package/docs/modules/shutingyard.html +84 -90
- package/docs/types/algebra_monom.literalType.html +66 -70
- package/docs/types/algebra_polynom.PolynomParsingType.html +62 -66
- package/docs/types/coefficients_fraction.FractionParsingType.html +61 -65
- package/docs/types/shutingyard.Token.html +72 -76
- package/docs/types/shutingyard.tokenType.html +77 -81
- package/docs/variables/shutingyard.tokenConstant.html +70 -74
- package/esm/index.d.ts +38 -41
- package/esm/index.js +43 -46
- package/esm/index.js.map +1 -1
- package/esm/maths/algebra/equation.d.ts +119 -117
- package/esm/maths/algebra/equation.js +796 -785
- package/esm/maths/algebra/equation.js.map +1 -1
- package/esm/maths/algebra/linearSystem.d.ts +39 -38
- package/esm/maths/algebra/linearSystem.js +278 -262
- package/esm/maths/algebra/linearSystem.js.map +1 -1
- package/esm/maths/algebra/logicalset.d.ts +28 -28
- package/esm/maths/algebra/logicalset.js +157 -157
- package/esm/maths/algebra/monom.d.ts +206 -206
- package/esm/maths/algebra/monom.js +908 -908
- package/esm/maths/algebra/monom.js.map +1 -1
- package/esm/maths/algebra/polynom.d.ts +157 -157
- package/esm/maths/algebra/polynom.js +1277 -1277
- package/esm/maths/algebra/rational.d.ts +45 -45
- package/esm/maths/algebra/rational.js +183 -183
- package/esm/maths/algebra/study/rationalStudy.d.ts +28 -28
- package/esm/maths/algebra/study/rationalStudy.js +243 -243
- package/esm/maths/algebra/study.d.ts +143 -142
- package/esm/maths/algebra/study.js +378 -377
- package/esm/maths/algebra/study.js.map +1 -1
- package/esm/maths/coefficients/fraction.d.ts +90 -90
- package/esm/maths/coefficients/fraction.js +516 -516
- package/esm/maths/coefficients/fraction.js.map +1 -1
- package/esm/maths/coefficients/nthRoot.d.ts +23 -23
- package/esm/maths/coefficients/nthRoot.js +136 -136
- package/esm/maths/geometry/circle.d.ts +45 -45
- package/esm/maths/geometry/circle.js +323 -323
- package/esm/maths/geometry/line.d.ts +99 -99
- package/esm/maths/geometry/line.js +481 -481
- package/esm/maths/geometry/line.js.map +1 -1
- package/esm/maths/geometry/point.d.ts +34 -34
- package/esm/maths/geometry/point.js +166 -166
- package/esm/maths/geometry/point.js.map +1 -1
- package/esm/maths/geometry/triangle.d.ts +85 -85
- package/esm/maths/geometry/triangle.js +268 -268
- package/esm/maths/geometry/vector.d.ts +41 -41
- package/esm/maths/geometry/vector.js +197 -197
- package/esm/maths/geometry/vector.js.map +1 -1
- package/esm/maths/numeric.d.ts +28 -28
- package/esm/maths/numeric.js +180 -180
- package/esm/maths/numexp.d.ts +19 -0
- package/esm/maths/numexp.js +186 -0
- package/esm/maths/numexp.js.map +1 -0
- package/esm/maths/randomization/random.d.ts +23 -23
- package/esm/maths/randomization/random.js +78 -78
- package/esm/maths/randomization/random.js.map +1 -1
- package/esm/maths/randomization/randomCore.d.ts +7 -7
- package/esm/maths/randomization/randomCore.js +21 -21
- package/esm/maths/randomization/rndFraction.d.ts +12 -12
- package/esm/maths/randomization/rndFraction.js +43 -43
- package/esm/maths/randomization/rndGeometryLine.d.ts +12 -12
- package/esm/maths/randomization/rndGeometryLine.js +45 -45
- package/esm/maths/randomization/rndGeometryPoint.d.ts +12 -12
- package/esm/maths/randomization/rndGeometryPoint.js +60 -60
- package/esm/maths/randomization/rndHelpers.d.ts +23 -23
- package/esm/maths/randomization/rndHelpers.js +76 -76
- package/esm/maths/randomization/rndMonom.d.ts +12 -12
- package/esm/maths/randomization/rndMonom.js +52 -52
- package/esm/maths/randomization/rndPolynom.d.ts +13 -13
- package/esm/maths/randomization/rndPolynom.js +74 -74
- package/esm/maths/randomization/rndTypes.d.ts +34 -34
- package/esm/maths/randomization/rndTypes.js +2 -2
- package/esm/maths/shutingyard.d.ts +59 -59
- package/esm/maths/shutingyard.js +442 -442
- package/esm/maths/shutingyard.js.map +1 -1
- package/package.json +11 -11
- package/public/index.html +50 -81
- package/public/playground.html +7 -8
- package/src/index.ts +1 -4
- package/src/maths/algebra/equation.ts +16 -0
- package/src/maths/algebra/linearSystem.ts +20 -0
- package/src/maths/algebra/study.ts +12 -10
- package/src/maths/{expressions/numexp.ts → numexp.ts} +2 -2
- package/tests/algebra/equation.test.ts +19 -5
- package/tests/algebra/linear.test.ts +3 -11
- package/tests/algebra/polynom.test.ts +7 -8
- package/tests/algebra/rationnal.test.ts +1 -1
- package/tests/algebra/study.test.ts +2 -9
- package/tests/coefficients/fraction.test.ts +8 -8
- package/tests/custom.test.ts +33 -37
- package/tests/numeric.test.ts +1 -2
- package/tests/numexp.test.ts +13 -5
- package/tests/shutingyard.test.ts +3 -3
- package/webpack-production-min.config.js +1 -1
- package/webpack-production.config.js +1 -1
- package/webpack.config.js +1 -1
- package/dist/pi.js.map +0 -1
- package/dist/pi.min.js +0 -2
- package/dist/pi.min.js.map +0 -1
- package/docs/classes/expressions_numexp.NumExp.html +0 -236
- package/docs/classes/expressions_polynomexp.PolynomExpFactor.html +0 -317
- package/docs/classes/expressions_polynomexp.PolynomExpProduct.html +0 -285
- package/docs/modules/expressions_numexp.html +0 -71
- package/docs/modules/expressions_polynomexp.html +0 -73
- package/docs/modules.html +0 -76
- package/graph.svg +0 -1033
- package/src/maths/expressions/ExpressionTree.ts +0 -172
- package/src/maths/expressions/expression.ts +0 -286
- package/src/maths/expressions/expressionFactor.ts +0 -190
- package/src/maths/expressions/expressionMember.ts +0 -233
- package/src/maths/expressions/expressionOperators.ts +0 -49
- package/src/maths/expressions/expressionParser.ts +0 -295
- package/src/maths/expressions/factors/ExpFactor.ts +0 -39
- package/src/maths/expressions/factors/ExpFactorConstant.ts +0 -60
- package/src/maths/expressions/factors/ExpFactorExponential.ts +0 -26
- package/src/maths/expressions/factors/ExpFactorNumber.ts +0 -72
- package/src/maths/expressions/factors/ExpFactorPower.ts +0 -42
- package/src/maths/expressions/factors/ExpFactorTrigo.ts +0 -53
- package/src/maths/expressions/factors/ExpFactorVariable.ts +0 -45
- package/src/maths/expressions/internals.ts +0 -14
- package/src/maths/expressions/polynomexp.bkp.ts +0 -221
- package/src/maths/expressions/polynomexp.ts +0 -310
- package/tests/expressions/expressions.test.ts +0 -145
- package/tests/expressions/expressiontree.test.ts +0 -11
- package/tests/polynomexp.test.ts +0 -12
package/esm/index.js
CHANGED
|
@@ -1,47 +1,44 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PiMath = void 0;
|
|
4
|
-
const numeric_1 = require("./maths/numeric");
|
|
5
|
-
const numexp_1 = require("./maths/
|
|
6
|
-
const shutingyard_1 = require("./maths/shutingyard");
|
|
7
|
-
const random_1 = require("./maths/randomization/random");
|
|
8
|
-
const fraction_1 = require("./maths/coefficients/fraction");
|
|
9
|
-
const nthRoot_1 = require("./maths/coefficients/nthRoot");
|
|
10
|
-
const monom_1 = require("./maths/algebra/monom");
|
|
11
|
-
const polynom_1 = require("./maths/algebra/polynom");
|
|
12
|
-
const equation_1 = require("./maths/algebra/equation");
|
|
13
|
-
const linearSystem_1 = require("./maths/algebra/linearSystem");
|
|
14
|
-
const rational_1 = require("./maths/algebra/rational");
|
|
15
|
-
const logicalset_1 = require("./maths/algebra/logicalset");
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
window.Pi = exports.PiMath;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PiMath = void 0;
|
|
4
|
+
const numeric_1 = require("./maths/numeric");
|
|
5
|
+
const numexp_1 = require("./maths/numexp");
|
|
6
|
+
const shutingyard_1 = require("./maths/shutingyard");
|
|
7
|
+
const random_1 = require("./maths/randomization/random");
|
|
8
|
+
const fraction_1 = require("./maths/coefficients/fraction");
|
|
9
|
+
const nthRoot_1 = require("./maths/coefficients/nthRoot");
|
|
10
|
+
const monom_1 = require("./maths/algebra/monom");
|
|
11
|
+
const polynom_1 = require("./maths/algebra/polynom");
|
|
12
|
+
const equation_1 = require("./maths/algebra/equation");
|
|
13
|
+
const linearSystem_1 = require("./maths/algebra/linearSystem");
|
|
14
|
+
const rational_1 = require("./maths/algebra/rational");
|
|
15
|
+
const logicalset_1 = require("./maths/algebra/logicalset");
|
|
16
|
+
const vector_1 = require("./maths/geometry/vector");
|
|
17
|
+
const line_1 = require("./maths/geometry/line");
|
|
18
|
+
const triangle_1 = require("./maths/geometry/triangle");
|
|
19
|
+
const circle_1 = require("./maths/geometry/circle");
|
|
20
|
+
const point_1 = require("./maths/geometry/point");
|
|
21
|
+
// Expose as global
|
|
22
|
+
exports.PiMath = {
|
|
23
|
+
ShutingYard: shutingyard_1.Shutingyard,
|
|
24
|
+
Numeric: numeric_1.Numeric,
|
|
25
|
+
NumExp: numexp_1.NumExp,
|
|
26
|
+
Fraction: fraction_1.Fraction,
|
|
27
|
+
Root: nthRoot_1.NthRoot,
|
|
28
|
+
Monom: monom_1.Monom,
|
|
29
|
+
Polynom: polynom_1.Polynom,
|
|
30
|
+
Equation: equation_1.Equation,
|
|
31
|
+
LinearSystem: linearSystem_1.LinearSystem,
|
|
32
|
+
Rational: rational_1.Rational,
|
|
33
|
+
Logicalset: logicalset_1.Logicalset,
|
|
34
|
+
Random: random_1.Random,
|
|
35
|
+
Geometry: {
|
|
36
|
+
Vector: vector_1.Vector,
|
|
37
|
+
Point: point_1.Point,
|
|
38
|
+
Line: line_1.Line,
|
|
39
|
+
Triangle: triangle_1.Triangle,
|
|
40
|
+
Circle: circle_1.Circle
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
window.Pi = exports.PiMath;
|
|
47
44
|
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AACxC,2CAAsC;AACtC,qDAAgD;AAChD,yDAAoD;AACpD,4DAAuD;AACvD,0DAAqD;AACrD,iDAA4C;AAC5C,qDAAgD;AAChD,uDAAkD;AAClD,+DAA0D;AAC1D,uDAAkD;AAClD,2DAAsD;AACtD,oDAA+C;AAC/C,gDAA2C;AAC3C,wDAAmD;AACnD,oDAA+C;AAC/C,kDAA6C;AAE7C,mBAAmB;AACN,QAAA,MAAM,GAAG;IAClB,WAAW,EAAE,yBAAW;IACxB,OAAO,EAAE,iBAAO;IAChB,MAAM,EAAE,eAAM;IACd,QAAQ,EAAE,mBAAQ;IAClB,IAAI,EAAE,iBAAO;IACb,KAAK,EAAE,aAAK;IACZ,OAAO,EAAE,iBAAO;IAChB,QAAQ,EAAE,mBAAQ;IAClB,YAAY,EAAE,2BAAY;IAC1B,QAAQ,EAAE,mBAAQ;IAClB,UAAU,EAAE,uBAAU;IACtB,MAAM,EAAE,eAAM;IACd,QAAQ,EAAE;QACN,MAAM,EAAE,eAAM;QACd,KAAK,EAAE,aAAK;QACZ,IAAI,EAAE,WAAI;QACV,QAAQ,EAAE,mBAAQ;QAClB,MAAM,EAAE,eAAM;KACjB;CACJ,CAAC;AAEI,MAAO,CAAC,EAAE,GAAG,cAAM,CAAA"}
|
|
@@ -1,117 +1,119 @@
|
|
|
1
|
-
import { Polynom } from "./polynom";
|
|
2
|
-
import { literalType } from "./monom";
|
|
3
|
-
import { Fraction } from "../coefficients/fraction";
|
|
4
|
-
/**
|
|
5
|
-
* Equation is a class to manage equations...
|
|
6
|
-
*/
|
|
7
|
-
export interface ISolution {
|
|
8
|
-
tex: string;
|
|
9
|
-
display: string;
|
|
10
|
-
value: number;
|
|
11
|
-
exact: unknown;
|
|
12
|
-
}
|
|
13
|
-
export declare enum PARTICULAR_SOLUTION {
|
|
14
|
-
real = "\\mathbb{R}",
|
|
15
|
-
varnothing = "\\varnothing"
|
|
16
|
-
}
|
|
17
|
-
export declare class Equation {
|
|
18
|
-
private _polynom;
|
|
19
|
-
private _varnothing;
|
|
20
|
-
private _real;
|
|
21
|
-
/**
|
|
22
|
-
* Create an Equation using two polynoms.
|
|
23
|
-
* Markdown *support* is cool
|
|
24
|
-
* @param equations
|
|
25
|
-
*/
|
|
26
|
-
constructor(...equations: unknown[]);
|
|
27
|
-
private _left;
|
|
28
|
-
get left(): Polynom;
|
|
29
|
-
set left(value: Polynom);
|
|
30
|
-
private _right;
|
|
31
|
-
get right(): Polynom;
|
|
32
|
-
set right(value: Polynom);
|
|
33
|
-
private _sign;
|
|
34
|
-
get sign(): string;
|
|
35
|
-
set sign(value: string);
|
|
36
|
-
private _solutions;
|
|
37
|
-
get solutions(): ISolution[];
|
|
38
|
-
get isEquation(): boolean;
|
|
39
|
-
get solution(): string;
|
|
40
|
-
get isReal(): boolean;
|
|
41
|
-
get isVarnothing(): boolean;
|
|
42
|
-
get signAsTex(): string;
|
|
43
|
-
get tex(): string;
|
|
44
|
-
get display(): string;
|
|
45
|
-
get raw(): string;
|
|
46
|
-
get variables(): string[];
|
|
47
|
-
get numberOfVars(): number;
|
|
48
|
-
hasVariable: (letter: string) => boolean;
|
|
49
|
-
private _randomizeDefaults;
|
|
50
|
-
get randomizeDefaults(): {
|
|
51
|
-
[key: string]: number | string | boolean;
|
|
52
|
-
};
|
|
53
|
-
set randomizeDefaults(value: {
|
|
54
|
-
[key: string]: number | string | boolean;
|
|
55
|
-
});
|
|
56
|
-
parse: (equationString: string) => Equation;
|
|
57
|
-
create: (left: Polynom, right: Polynom, sign?: string) => Equation;
|
|
58
|
-
clone: () => Equation;
|
|
59
|
-
randomize: (opts?: {}, sign?: string) => Equation;
|
|
60
|
-
/**
|
|
61
|
-
* Reorder will move all monoms containing a letter on the left, all the other on the right.
|
|
62
|
-
*/
|
|
63
|
-
moveLeft: () => Equation;
|
|
64
|
-
reorder: (allLeft?: boolean) => Equation;
|
|
65
|
-
/**
|
|
66
|
-
* Multiply by the lcm denominator and divide by the gcm numerators.
|
|
67
|
-
*/
|
|
68
|
-
simplify: () => Equation;
|
|
69
|
-
/**
|
|
70
|
-
* Reorder the polynom to have only one letter on the left, the rest on the right.
|
|
71
|
-
* @param letter
|
|
72
|
-
*/
|
|
73
|
-
isolate: (letter?: string) => Equation | false;
|
|
74
|
-
replaceBy: (letter: string, P: Polynom) => Equation;
|
|
75
|
-
/**
|
|
76
|
-
* Multiple an equation by a fraction value.
|
|
77
|
-
* @param value
|
|
78
|
-
*/
|
|
79
|
-
multiply: (value: unknown) => Equation;
|
|
80
|
-
/**
|
|
81
|
-
* divide an equation by a given value (transformed as a fraction)
|
|
82
|
-
*
|
|
83
|
-
* ```
|
|
84
|
-
* 8x+10=6x \vert 2
|
|
85
|
-
* 4x+5=3x
|
|
86
|
-
* ```
|
|
87
|
-
*
|
|
88
|
-
* |>Alternatively with $3x-4$ maybe it's working ?
|
|
89
|
-
* $$\frac{3x}{5}$$
|
|
90
|
-
*
|
|
91
|
-
* @param value
|
|
92
|
-
* @returns {Equation}
|
|
93
|
-
*/
|
|
94
|
-
divide: (value: unknown) => Equation;
|
|
95
|
-
/**
|
|
96
|
-
* Get the degree of the equation
|
|
97
|
-
* @param letter
|
|
98
|
-
*/
|
|
99
|
-
degree: (letter?: string) => Fraction;
|
|
100
|
-
/**
|
|
101
|
-
* Determine if the equation contains more than one letter/variable.
|
|
102
|
-
*/
|
|
103
|
-
isMultiVariable: () => boolean;
|
|
104
|
-
letters: () => string[];
|
|
105
|
-
solve: () => Equation;
|
|
106
|
-
static makeSolutionsUnique(solutions: ISolution[], sorted?: boolean): ISolution[];
|
|
107
|
-
test: (values: literalType) => Boolean;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
private
|
|
111
|
-
private
|
|
112
|
-
private
|
|
113
|
-
private
|
|
114
|
-
private
|
|
115
|
-
private
|
|
116
|
-
private
|
|
117
|
-
|
|
1
|
+
import { Polynom } from "./polynom";
|
|
2
|
+
import { literalType } from "./monom";
|
|
3
|
+
import { Fraction } from "../coefficients/fraction";
|
|
4
|
+
/**
|
|
5
|
+
* Equation is a class to manage equations...
|
|
6
|
+
*/
|
|
7
|
+
export interface ISolution {
|
|
8
|
+
tex: string;
|
|
9
|
+
display: string;
|
|
10
|
+
value: number;
|
|
11
|
+
exact: unknown;
|
|
12
|
+
}
|
|
13
|
+
export declare enum PARTICULAR_SOLUTION {
|
|
14
|
+
real = "\\mathbb{R}",
|
|
15
|
+
varnothing = "\\varnothing"
|
|
16
|
+
}
|
|
17
|
+
export declare class Equation {
|
|
18
|
+
private _polynom;
|
|
19
|
+
private _varnothing;
|
|
20
|
+
private _real;
|
|
21
|
+
/**
|
|
22
|
+
* Create an Equation using two polynoms.
|
|
23
|
+
* Markdown *support* is cool
|
|
24
|
+
* @param equations
|
|
25
|
+
*/
|
|
26
|
+
constructor(...equations: unknown[]);
|
|
27
|
+
private _left;
|
|
28
|
+
get left(): Polynom;
|
|
29
|
+
set left(value: Polynom);
|
|
30
|
+
private _right;
|
|
31
|
+
get right(): Polynom;
|
|
32
|
+
set right(value: Polynom);
|
|
33
|
+
private _sign;
|
|
34
|
+
get sign(): string;
|
|
35
|
+
set sign(value: string);
|
|
36
|
+
private _solutions;
|
|
37
|
+
get solutions(): ISolution[];
|
|
38
|
+
get isEquation(): boolean;
|
|
39
|
+
get solution(): string;
|
|
40
|
+
get isReal(): boolean;
|
|
41
|
+
get isVarnothing(): boolean;
|
|
42
|
+
get signAsTex(): string;
|
|
43
|
+
get tex(): string;
|
|
44
|
+
get display(): string;
|
|
45
|
+
get raw(): string;
|
|
46
|
+
get variables(): string[];
|
|
47
|
+
get numberOfVars(): number;
|
|
48
|
+
hasVariable: (letter: string) => boolean;
|
|
49
|
+
private _randomizeDefaults;
|
|
50
|
+
get randomizeDefaults(): {
|
|
51
|
+
[key: string]: number | string | boolean;
|
|
52
|
+
};
|
|
53
|
+
set randomizeDefaults(value: {
|
|
54
|
+
[key: string]: number | string | boolean;
|
|
55
|
+
});
|
|
56
|
+
parse: (equationString: string) => Equation;
|
|
57
|
+
create: (left: Polynom, right: Polynom, sign?: string) => Equation;
|
|
58
|
+
clone: () => Equation;
|
|
59
|
+
randomize: (opts?: {}, sign?: string) => Equation;
|
|
60
|
+
/**
|
|
61
|
+
* Reorder will move all monoms containing a letter on the left, all the other on the right.
|
|
62
|
+
*/
|
|
63
|
+
moveLeft: () => Equation;
|
|
64
|
+
reorder: (allLeft?: boolean) => Equation;
|
|
65
|
+
/**
|
|
66
|
+
* Multiply by the lcm denominator and divide by the gcm numerators.
|
|
67
|
+
*/
|
|
68
|
+
simplify: () => Equation;
|
|
69
|
+
/**
|
|
70
|
+
* Reorder the polynom to have only one letter on the left, the rest on the right.
|
|
71
|
+
* @param letter
|
|
72
|
+
*/
|
|
73
|
+
isolate: (letter?: string) => Equation | false;
|
|
74
|
+
replaceBy: (letter: string, P: Polynom) => Equation;
|
|
75
|
+
/**
|
|
76
|
+
* Multiple an equation by a fraction value.
|
|
77
|
+
* @param value
|
|
78
|
+
*/
|
|
79
|
+
multiply: (value: unknown) => Equation;
|
|
80
|
+
/**
|
|
81
|
+
* divide an equation by a given value (transformed as a fraction)
|
|
82
|
+
*
|
|
83
|
+
* ```
|
|
84
|
+
* 8x+10=6x \vert 2
|
|
85
|
+
* 4x+5=3x
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* |>Alternatively with $3x-4$ maybe it's working ?
|
|
89
|
+
* $$\frac{3x}{5}$$
|
|
90
|
+
*
|
|
91
|
+
* @param value
|
|
92
|
+
* @returns {Equation}
|
|
93
|
+
*/
|
|
94
|
+
divide: (value: unknown) => Equation;
|
|
95
|
+
/**
|
|
96
|
+
* Get the degree of the equation
|
|
97
|
+
* @param letter
|
|
98
|
+
*/
|
|
99
|
+
degree: (letter?: string) => Fraction;
|
|
100
|
+
/**
|
|
101
|
+
* Determine if the equation contains more than one letter/variable.
|
|
102
|
+
*/
|
|
103
|
+
isMultiVariable: () => boolean;
|
|
104
|
+
letters: () => string[];
|
|
105
|
+
solve: () => Equation;
|
|
106
|
+
static makeSolutionsUnique(solutions: ISolution[], sorted?: boolean): ISolution[];
|
|
107
|
+
test: (values: literalType) => Boolean;
|
|
108
|
+
isSameAs: (equ: Equation) => Boolean;
|
|
109
|
+
isLinearTo: (equ: Equation) => Boolean;
|
|
110
|
+
private _findSign;
|
|
111
|
+
private _formatSign;
|
|
112
|
+
private _reverseSign;
|
|
113
|
+
private isGreater;
|
|
114
|
+
private isStrictEqual;
|
|
115
|
+
private isAlsoEqual;
|
|
116
|
+
private _solveDegree1;
|
|
117
|
+
private _solveDegree2;
|
|
118
|
+
private _solveDegree3plus;
|
|
119
|
+
}
|