pimath 0.2.8 → 0.2.9
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/dist/pimath.js +5581 -5042
- package/dist/pimath.js.map +1 -1
- package/package.json +16 -16
- package/src/algebra/equation.ts +21 -22
- package/src/algebra/polynom.ts +19 -16
- package/types/algebra/equation.d.ts +6 -58
- package/types/algebra/equation.d.ts.map +1 -1
- package/types/algebra/equationSolver.d.ts +4 -3
- package/types/algebra/factor.d.ts +4 -3
- package/types/algebra/index.d.ts +1 -0
- package/types/algebra/linearSystem.d.ts +6 -5
- package/types/algebra/logicalset.d.ts +1 -7
- package/types/algebra/matrix.d.ts +4 -3
- package/types/algebra/monom.d.ts +3 -115
- package/types/algebra/operations.d.ts +2 -1
- package/types/algebra/polyFactor.d.ts +6 -14
- package/types/algebra/polynom.d.ts +6 -36
- package/types/algebra/polynom.d.ts.map +1 -1
- package/types/analyze/index.d.ts +3 -2
- package/types/analyze/solution.d.ts +4 -3
- package/types/analyze/tableOfSigns.d.ts +4 -3
- package/types/coefficients/fraction.d.ts +2 -14
- package/types/coefficients/index.d.ts +1 -0
- package/types/coefficients/root.d.ts +3 -5
- package/types/geometry/TupleN.d.ts +3 -2
- package/types/geometry/circle.d.ts +6 -15
- package/types/geometry/geomMath.d.ts +4 -3
- package/types/geometry/index.d.ts +1 -0
- package/types/geometry/line.d.ts +7 -16
- package/types/geometry/line3.d.ts +5 -9
- package/types/geometry/plane3.d.ts +6 -5
- package/types/geometry/point.d.ts +6 -5
- package/types/geometry/sphere3.d.ts +5 -4
- package/types/geometry/triangle.d.ts +6 -12
- package/types/geometry/vector.d.ts +5 -4
- package/types/helpers.d.ts +1 -0
- package/types/index.d.ts +22 -21
- package/types/numeric.d.ts +1 -16
- package/types/pimath.interface.d.ts +5 -4
- package/types/randomization/algebra/rndEquation.d.ts +3 -2
- package/types/randomization/algebra/rndMonom.d.ts +3 -2
- package/types/randomization/algebra/rndPolynom.d.ts +3 -2
- package/types/randomization/coefficient/rndFraction.d.ts +3 -2
- package/types/randomization/geometry/rndCircle.d.ts +3 -2
- package/types/randomization/geometry/rndLine.d.ts +3 -2
- package/types/randomization/geometry/rndLine3.d.ts +3 -2
- package/types/randomization/geometry/rndVector.d.ts +3 -2
- package/types/randomization/random.d.ts +11 -10
- package/types/randomization/rndHelpers.d.ts +1 -14
- package/types/randomization/rndTypes.d.ts +2 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IAlgebra, IExpression, InputAlgebra, InputValue, IPiMathObject, literalType, POLYFACTOR_TABLE_OF_SIGNS } from
|
|
2
|
-
import { Fraction } from
|
|
3
|
-
import { Factor } from
|
|
4
|
-
import { Polynom } from
|
|
5
|
-
import { Solution } from
|
|
1
|
+
import type { IAlgebra, IExpression, InputAlgebra, InputValue, IPiMathObject, literalType, POLYFACTOR_TABLE_OF_SIGNS } from "../pimath.interface";
|
|
2
|
+
import { Fraction } from "../coefficients";
|
|
3
|
+
import { Factor } from "./factor";
|
|
4
|
+
import { Polynom } from "./polynom";
|
|
5
|
+
import type { Solution } from "../analyze";
|
|
6
6
|
export declare class PolyFactor implements IPiMathObject<PolyFactor>, IExpression<PolyFactor>, IAlgebra<PolyFactor> {
|
|
7
7
|
#private;
|
|
8
8
|
constructor(...values: (InputAlgebra<Polynom> | Factor | PolyFactor)[]);
|
|
@@ -26,9 +26,6 @@ export declare class PolyFactor implements IPiMathObject<PolyFactor>, IExpressio
|
|
|
26
26
|
set factors(value: Factor[]);
|
|
27
27
|
fromPolynom(numerator: InputAlgebra<Polynom>, denominator?: InputAlgebra<Polynom>): this;
|
|
28
28
|
fromString(value: string): this;
|
|
29
|
-
/**
|
|
30
|
-
* Get the roots of the PolyFactor.
|
|
31
|
-
*/
|
|
32
29
|
getRoots(): Solution[];
|
|
33
30
|
getZeroes(): Solution[];
|
|
34
31
|
hasVariable(letter: string): boolean;
|
|
@@ -44,12 +41,6 @@ export declare class PolyFactor implements IPiMathObject<PolyFactor>, IExpressio
|
|
|
44
41
|
primitive(): PolyFactor;
|
|
45
42
|
reduce(): this;
|
|
46
43
|
root(value: number): this;
|
|
47
|
-
/**
|
|
48
|
-
* Reoarder the factors using :
|
|
49
|
-
* 1. number of monoms
|
|
50
|
-
* 2. degree of polynom
|
|
51
|
-
* 3. power of polyfactor
|
|
52
|
-
*/
|
|
53
44
|
sort(letter?: string): this;
|
|
54
45
|
sqrt(): this;
|
|
55
46
|
subtract(...values: PolyFactor[]): this;
|
|
@@ -57,3 +48,4 @@ export declare class PolyFactor implements IPiMathObject<PolyFactor>, IExpressio
|
|
|
57
48
|
get variables(): string[];
|
|
58
49
|
zero(): this;
|
|
59
50
|
}
|
|
51
|
+
//# sourceMappingURL=polyFactor.d.ts.map
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { IAlgebra, IAnalyse, IExpression, InputAlgebra, InputValue, IPiMathObject, literalType, TABLE_OF_SIGNS } from
|
|
2
|
-
import { Fraction } from
|
|
1
|
+
import type { IAlgebra, IAnalyse, IExpression, InputAlgebra, InputValue, IPiMathObject, literalType, TABLE_OF_SIGNS } from "../pimath.interface";
|
|
2
|
+
import { Fraction } from "../coefficients";
|
|
3
3
|
import { Monom } from './monom';
|
|
4
|
-
import { Solution } from
|
|
4
|
+
import { Solution } from "../analyze/solution";
|
|
5
5
|
export type PolynomParsingType = InputValue<Polynom> | Monom;
|
|
6
6
|
export interface IEuclidean {
|
|
7
7
|
quotient: Polynom;
|
|
8
8
|
reminder: Polynom;
|
|
9
9
|
}
|
|
10
|
-
/**
|
|
11
|
-
* Polynom class can handle polynoms, reorder, resolve, ...
|
|
12
|
-
* ```
|
|
13
|
-
* let P = new Polynom('3x-4')
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
10
|
export declare class Polynom implements IPiMathObject<Polynom>, IExpression<Polynom>, IAnalyse<Polynom>, IAlgebra<Polynom> {
|
|
17
11
|
#private;
|
|
18
12
|
constructor(value: InputValue<Fraction>);
|
|
@@ -21,15 +15,7 @@ export declare class Polynom implements IPiMathObject<Polynom>, IExpression<Poly
|
|
|
21
15
|
constructor(value: Polynom);
|
|
22
16
|
constructor(...values: InputValue<Fraction>[]);
|
|
23
17
|
constructor(...values: InputAlgebra<Polynom>[]);
|
|
24
|
-
/**
|
|
25
|
-
* Parse a string to a polynom.
|
|
26
|
-
* @param inputStr
|
|
27
|
-
* @param values
|
|
28
|
-
*/
|
|
29
18
|
parse(inputStr: PolynomParsingType, ...values: InputAlgebra<Monom>[]): this;
|
|
30
|
-
/**
|
|
31
|
-
* Clone the polynom
|
|
32
|
-
*/
|
|
33
19
|
clone(): Polynom;
|
|
34
20
|
get tex(): string;
|
|
35
21
|
get display(): string;
|
|
@@ -40,18 +26,10 @@ export declare class Polynom implements IPiMathObject<Polynom>, IExpression<Poly
|
|
|
40
26
|
derivative(letter?: string): Polynom;
|
|
41
27
|
divide(value: InputAlgebra<Polynom>): this;
|
|
42
28
|
empty(): this;
|
|
43
|
-
/**
|
|
44
|
-
* Divide the current polynom by another polynom.
|
|
45
|
-
* @param P
|
|
46
|
-
* returns {quotient: Polynom, reminder: Polynom}
|
|
47
|
-
*/
|
|
48
29
|
euclidean(P: Polynom): IEuclidean;
|
|
30
|
+
evaluate(values: literalType<Fraction | number> | InputValue<Fraction>, asNumeric: true): number;
|
|
31
|
+
evaluate(values: literalType<Fraction | number> | InputValue<Fraction>, asNumeric?: false): Fraction;
|
|
49
32
|
evaluate(values: literalType<Fraction | number> | InputValue<Fraction>, asNumeric?: boolean): Fraction | number;
|
|
50
|
-
/**
|
|
51
|
-
* Factorize a polynom and store the best results in factors.
|
|
52
|
-
* @param _letter
|
|
53
|
-
* TODO: Handle other letter than 'x'.
|
|
54
|
-
*/
|
|
55
33
|
factorize(_letter?: string): Polynom[];
|
|
56
34
|
get factors(): Polynom[];
|
|
57
35
|
fromCoefficients(...values: InputValue<Fraction>[]): this;
|
|
@@ -90,11 +68,6 @@ export declare class Polynom implements IPiMathObject<Polynom>, IExpression<Poly
|
|
|
90
68
|
primitive(letter?: string): Polynom;
|
|
91
69
|
reduce(): this;
|
|
92
70
|
reorder(letter?: string, revert?: boolean): this;
|
|
93
|
-
/**
|
|
94
|
-
* Replace a variable (letter) by a polynom.
|
|
95
|
-
* @param letter
|
|
96
|
-
* @param P
|
|
97
|
-
*/
|
|
98
71
|
replaceBy(letter: string, P: Polynom): this;
|
|
99
72
|
root(): Polynom;
|
|
100
73
|
get roots(): Solution[];
|
|
@@ -105,10 +78,7 @@ export declare class Polynom implements IPiMathObject<Polynom>, IExpression<Poly
|
|
|
105
78
|
tableOfSigns(): TABLE_OF_SIGNS;
|
|
106
79
|
get value(): number | undefined;
|
|
107
80
|
get variables(): string[];
|
|
108
|
-
/**
|
|
109
|
-
* Set the polynom to zero.
|
|
110
|
-
* @returns {this}
|
|
111
|
-
*/
|
|
112
81
|
zero(): this;
|
|
113
82
|
get zeroes(): Solution[];
|
|
114
83
|
}
|
|
84
|
+
//# sourceMappingURL=polynom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polynom.d.ts","sourceRoot":"","sources":["../../src/algebra/polynom.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACR,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,UAAU,EACV,aAAa,EACb,WAAW,EACX,cAAc,EAEjB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AAGxC,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAA;AAG7B,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAA;AAG5C,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,KAAK,CAAA;AAE5D,MAAM,WAAW,UAAU;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAA;CACpB;AAQD,qBAAa,OAAQ,YAAW,aAAa,CAAC,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AAM,IAAI,IAAI;IAuCd,OAAO,CAAC,MAAM,SAAM,EAAE,MAAM,UAAQ,GAAG,IAAI;IAoC3C,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,GAAG,IAAI;IAiC3C,IAAI,IAAI,OAAO;IAItB,IAAI,KAAK,IAAI,QAAQ,EAAE,CAEtB;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,EAG1B;IAEM,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAMhC,IAAI,IAAI,OAAO;IAIf,QAAQ,CAAC,GAAG,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI;IAelD,YAAY,IAAI,cAAc;IA8CrC,IAAW,KAAK,IAAI,MAAM,GAAG,SAAS,CAMrC;IAED,IAAW,SAAS,IAAI,MAAM,EAAE,CAE/B;IAMM,IAAI,IAAI,IAAI;IAOnB,IAAW,MAAM,IAAI,QAAQ,EAAE,CAE9B;CA6SJ"}
|
package/types/analyze/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./solution";
|
|
2
|
+
export * from "./tableOfSigns";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InputValue } from
|
|
2
|
-
import { Fraction } from
|
|
3
|
-
import { Root } from
|
|
1
|
+
import type { InputValue } from "../pimath.interface";
|
|
2
|
+
import { Fraction } from "../coefficients";
|
|
3
|
+
import { Root } from "../coefficients/root";
|
|
4
4
|
export declare class Solution {
|
|
5
5
|
#private;
|
|
6
6
|
constructor();
|
|
@@ -25,3 +25,4 @@ export declare class Solution {
|
|
|
25
25
|
get variable(): string;
|
|
26
26
|
set variable(value: string | undefined);
|
|
27
27
|
}
|
|
28
|
+
//# sourceMappingURL=solution.d.ts.map
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Factor, PolyFactor, Polynom } from
|
|
2
|
-
import { InputAlgebra } from
|
|
3
|
-
import { Solution } from
|
|
1
|
+
import { Factor, PolyFactor, Polynom } from "../algebra";
|
|
2
|
+
import type { InputAlgebra } from "../pimath.interface";
|
|
3
|
+
import type { Solution } from "./solution";
|
|
4
4
|
export declare class TableOfSigns {
|
|
5
5
|
#private;
|
|
6
6
|
constructor(value: InputAlgebra<PolyFactor | Factor | Polynom>);
|
|
7
7
|
get fx(): PolyFactor;
|
|
8
8
|
get roots(): Solution[];
|
|
9
9
|
}
|
|
10
|
+
//# sourceMappingURL=tableOfSigns.d.ts.map
|
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
import { compareSign, IExpression, InputValue, IPiMathObject } from
|
|
1
|
+
import type { compareSign, IExpression, InputValue, IPiMathObject } from "../pimath.interface";
|
|
2
2
|
export declare enum FRAC_TYPE {
|
|
3
3
|
frac = "frac",
|
|
4
4
|
dfrac = "dfrac",
|
|
5
5
|
tfrac = "tfrac"
|
|
6
6
|
}
|
|
7
|
-
/**
|
|
8
|
-
* The fraction class make possible to handle
|
|
9
|
-
* \\(\frac{a}{b}\\) or \\[\frac{a}{b}\\] values.
|
|
10
|
-
*/
|
|
11
7
|
export declare class Fraction implements IPiMathObject<Fraction>, IExpression<Fraction> {
|
|
12
8
|
#private;
|
|
13
9
|
constructor();
|
|
14
10
|
constructor(value: InputValue<Fraction>);
|
|
15
11
|
constructor(numerator: number, denominator: number);
|
|
16
|
-
/**
|
|
17
|
-
* Parse the value to get the numerator and denominator
|
|
18
|
-
* @param value : number or string to parse to get the fraction
|
|
19
|
-
*/
|
|
20
12
|
parse: (value: InputValue<Fraction>, denominator?: number) => this;
|
|
21
13
|
clone: () => Fraction;
|
|
22
14
|
copy(value: Fraction): this;
|
|
@@ -34,11 +26,6 @@ export declare class Fraction implements IPiMathObject<Fraction>, IExpression<Fr
|
|
|
34
26
|
abs: () => this;
|
|
35
27
|
add: (F: InputValue<Fraction>) => this;
|
|
36
28
|
amplify: (k: number) => this;
|
|
37
|
-
/**
|
|
38
|
-
* Compare the current coefficient with another coefficient
|
|
39
|
-
* @param F (Coefficient) The coefficient to _compare
|
|
40
|
-
* @param sign (string| default is =): authorized values: =, <, <=, >, >= with some variations.
|
|
41
|
-
*/
|
|
42
29
|
compare: (F: InputValue<Fraction>, sign?: compareSign) => boolean;
|
|
43
30
|
get denominator(): number;
|
|
44
31
|
set denominator(value: number);
|
|
@@ -96,3 +83,4 @@ export declare class Fraction implements IPiMathObject<Fraction>, IExpression<Fr
|
|
|
96
83
|
get withoutSign(): this;
|
|
97
84
|
zero: () => this;
|
|
98
85
|
}
|
|
86
|
+
//# sourceMappingURL=fraction.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Fraction } from
|
|
2
|
-
import { IExpression, InputValue, IPiMathObject } from
|
|
1
|
+
import { Fraction } from "./fraction";
|
|
2
|
+
import type { IExpression, InputValue, IPiMathObject } from "../pimath.interface";
|
|
3
3
|
export declare class Root implements IPiMathObject<Root>, IExpression<Root> {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(value?: InputValue<Root | Fraction>);
|
|
@@ -12,9 +12,6 @@ export declare class Root implements IPiMathObject<Root>, IExpression<Root> {
|
|
|
12
12
|
get factor(): Fraction;
|
|
13
13
|
set factor(value: Fraction);
|
|
14
14
|
from(index: number, radical: InputValue<Fraction>, factor?: InputValue<Fraction>): this;
|
|
15
|
-
/**
|
|
16
|
-
* convert to root(index)(radical), without factor
|
|
17
|
-
*/
|
|
18
15
|
group(): this;
|
|
19
16
|
get index(): number;
|
|
20
17
|
set index(value: number);
|
|
@@ -39,3 +36,4 @@ export declare class Root implements IPiMathObject<Root>, IExpression<Root> {
|
|
|
39
36
|
get withoutSign(): this;
|
|
40
37
|
zero(): this;
|
|
41
38
|
}
|
|
39
|
+
//# sourceMappingURL=root.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Fraction } from
|
|
2
|
-
import { InputValue } from
|
|
1
|
+
import { Fraction } from "../coefficients";
|
|
2
|
+
import type { InputValue } from "../pimath.interface";
|
|
3
3
|
export declare abstract class TupleN {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(...values: InputValue<Fraction>[]);
|
|
@@ -22,3 +22,4 @@ export declare abstract class TupleN {
|
|
|
22
22
|
set z(value: Fraction | number | string);
|
|
23
23
|
zero: () => this;
|
|
24
24
|
}
|
|
25
|
+
//# sourceMappingURL=TupleN.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Line } from
|
|
2
|
-
import { Fraction, Root } from
|
|
3
|
-
import { Equation } from
|
|
4
|
-
import { IPiMathObject } from
|
|
5
|
-
import { Point } from
|
|
1
|
+
import { Line } from "./line";
|
|
2
|
+
import { Fraction, Root } from "../coefficients";
|
|
3
|
+
import { Equation } from "../algebra";
|
|
4
|
+
import { type IPiMathObject } from "../pimath.interface";
|
|
5
|
+
import { Point } from "./point";
|
|
6
6
|
export declare class Circle implements IPiMathObject<Circle> {
|
|
7
7
|
#private;
|
|
8
8
|
constructor();
|
|
@@ -28,20 +28,11 @@ export declare class Circle implements IPiMathObject<Circle> {
|
|
|
28
28
|
getPointsOnCircle(): Point[];
|
|
29
29
|
isPointOnCircle: (P: Point) => boolean;
|
|
30
30
|
isSame(circ: Circle): boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Find the intersection points between the circle and a line. It can be 0, 1 or 2 points.
|
|
33
|
-
* The points are sorted depending on the direction vector of the line.
|
|
34
|
-
* @param L
|
|
35
|
-
*/
|
|
36
31
|
lineIntersection(L: Line): Point[];
|
|
37
32
|
get radius(): Root;
|
|
38
|
-
/**
|
|
39
|
-
* Get the relative position between circle and line. It corresponds to the number of intersection.
|
|
40
|
-
* @param {Line} L
|
|
41
|
-
* @returns {number}
|
|
42
|
-
*/
|
|
43
33
|
relativePosition(L: Line): number;
|
|
44
34
|
setRadius(radius: Fraction | number, square?: boolean): this;
|
|
45
35
|
get squareRadius(): Fraction;
|
|
46
36
|
tangents: (P: Point | Fraction) => Line[];
|
|
47
37
|
}
|
|
38
|
+
//# sourceMappingURL=circle.d.ts.map
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Fraction } from
|
|
2
|
-
import { Vector } from
|
|
3
|
-
import { Point } from
|
|
1
|
+
import { Fraction } from "../coefficients";
|
|
2
|
+
import type { Vector } from "./vector";
|
|
3
|
+
import type { Point } from "./point";
|
|
4
4
|
type V = Vector | Point;
|
|
5
5
|
export declare function areVectorsEquals(v1: V, v2: V): boolean;
|
|
6
6
|
export declare function areVectorsColinears(v1: V, v2: V): boolean;
|
|
7
7
|
export declare function dotProduct(v1: V, v2: V): Fraction;
|
|
8
8
|
export declare function determinantFromVectors(...values: V[]): Fraction;
|
|
9
9
|
export {};
|
|
10
|
+
//# sourceMappingURL=geomMath.d.ts.map
|
package/types/geometry/line.d.ts
CHANGED
|
@@ -1,24 +1,14 @@
|
|
|
1
|
-
import { Fraction } from
|
|
2
|
-
import { Equation } from
|
|
3
|
-
import { Vector } from
|
|
4
|
-
import { InputValue, IPiMathObject, LinePropriety } from
|
|
5
|
-
import { Point } from
|
|
6
|
-
import { Root } from
|
|
1
|
+
import { Fraction } from "../coefficients";
|
|
2
|
+
import { Equation } from "../algebra";
|
|
3
|
+
import { Vector } from "./vector";
|
|
4
|
+
import { type InputValue, type IPiMathObject, LinePropriety } from "../pimath.interface";
|
|
5
|
+
import { Point } from "./point";
|
|
6
|
+
import { Root } from "../coefficients/root";
|
|
7
7
|
export declare class Line implements IPiMathObject<Line> {
|
|
8
8
|
#private;
|
|
9
9
|
static PARALLEL: LinePropriety;
|
|
10
10
|
static PERPENDICULAR: LinePropriety;
|
|
11
|
-
/**
|
|
12
|
-
* Value can be a mix of:
|
|
13
|
-
*
|
|
14
|
-
* @param values
|
|
15
|
-
*/
|
|
16
11
|
constructor(...values: unknown[]);
|
|
17
|
-
/**
|
|
18
|
-
* Parse data to a line
|
|
19
|
-
* @param {any} values
|
|
20
|
-
* @returns {Line}
|
|
21
|
-
*/
|
|
22
12
|
parse: (...values: unknown[]) => this;
|
|
23
13
|
clone: () => Line;
|
|
24
14
|
get tex(): string;
|
|
@@ -73,3 +63,4 @@ export declare class Line implements IPiMathObject<Line> {
|
|
|
73
63
|
simplify: () => this;
|
|
74
64
|
get slope(): Fraction;
|
|
75
65
|
}
|
|
66
|
+
//# sourceMappingURL=line.d.ts.map
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { Fraction } from
|
|
2
|
-
import { Vector } from
|
|
3
|
-
import { Point } from
|
|
4
|
-
import { Line3Propriety } from
|
|
1
|
+
import { Fraction } from "../coefficients/fraction";
|
|
2
|
+
import { Vector } from "./vector";
|
|
3
|
+
import { Point } from "./point";
|
|
4
|
+
import { Line3Propriety } from "../pimath.interface";
|
|
5
5
|
export declare class Line3 {
|
|
6
6
|
#private;
|
|
7
7
|
static PARALLEL: Line3Propriety;
|
|
8
8
|
static PERPENDICULAR: Line3Propriety;
|
|
9
|
-
/**
|
|
10
|
-
* Value can be a mix of:
|
|
11
|
-
*
|
|
12
|
-
* @param values
|
|
13
|
-
*/
|
|
14
9
|
constructor(A: Point, B: Point);
|
|
15
10
|
constructor(A: Point, d: Vector);
|
|
16
11
|
clone: () => this;
|
|
@@ -50,3 +45,4 @@ export declare class Line3 {
|
|
|
50
45
|
randomPoint: (max?: number) => Point;
|
|
51
46
|
simplify: () => this;
|
|
52
47
|
}
|
|
48
|
+
//# sourceMappingURL=line3.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Fraction } from
|
|
2
|
-
import { Line3 } from
|
|
3
|
-
import { Point } from
|
|
4
|
-
import { Vector } from
|
|
5
|
-
import { Plane3Config } from
|
|
1
|
+
import { Fraction } from "../coefficients/fraction";
|
|
2
|
+
import { Line3 } from "./line3";
|
|
3
|
+
import { Point } from "./point";
|
|
4
|
+
import { Vector } from "./vector";
|
|
5
|
+
import type { Plane3Config } from "../pimath.interface";
|
|
6
6
|
export declare class Plane3 {
|
|
7
7
|
#private;
|
|
8
8
|
constructor(config?: Plane3Config);
|
|
@@ -25,3 +25,4 @@ export declare class Plane3 {
|
|
|
25
25
|
get point(): Point;
|
|
26
26
|
set point(value: Point | Vector);
|
|
27
27
|
}
|
|
28
|
+
//# sourceMappingURL=plane3.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Fraction } from
|
|
2
|
-
import { InputValue } from
|
|
3
|
-
import { Root } from
|
|
4
|
-
import { TupleN } from
|
|
5
|
-
import { Vector } from
|
|
1
|
+
import { Fraction } from "../coefficients";
|
|
2
|
+
import type { InputValue } from "../pimath.interface";
|
|
3
|
+
import { Root } from "../coefficients/root";
|
|
4
|
+
import { TupleN } from "./TupleN";
|
|
5
|
+
import type { Vector } from "./vector";
|
|
6
6
|
export declare class Point extends TupleN {
|
|
7
7
|
constructor(...values: (Point | Vector)[] | InputValue<Fraction>[]);
|
|
8
8
|
parse(...values: (Point | Vector)[] | InputValue<Fraction>[]): this;
|
|
@@ -14,3 +14,4 @@ export declare class Point extends TupleN {
|
|
|
14
14
|
isEqualXY(x: InputValue<Fraction>, y: InputValue<Fraction>): boolean;
|
|
15
15
|
middleOf(V1: Point, V2: Point): this;
|
|
16
16
|
}
|
|
17
|
+
//# sourceMappingURL=point.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Point } from
|
|
2
|
-
import { Fraction } from
|
|
3
|
-
import { Equation } from
|
|
4
|
-
import { InputValue } from
|
|
1
|
+
import { Point } from "./point";
|
|
2
|
+
import { Fraction } from "../coefficients";
|
|
3
|
+
import { Equation } from "../algebra";
|
|
4
|
+
import type { InputValue } from "../pimath.interface";
|
|
5
5
|
export declare enum SPHERE3_RELATIVE_POSITION {
|
|
6
6
|
INTERIOR = 0,
|
|
7
7
|
EXTERIOR = 1,
|
|
@@ -32,3 +32,4 @@ export declare class Sphere3 {
|
|
|
32
32
|
relativePosition: (S: Sphere3) => SPHERE3_RELATIVE_POSITION;
|
|
33
33
|
isPointOnSphere: (P: Point) => boolean;
|
|
34
34
|
}
|
|
35
|
+
//# sourceMappingURL=sphere3.d.ts.map
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
import { Fraction } from
|
|
2
|
-
import { Line } from
|
|
3
|
-
import { Vector } from
|
|
4
|
-
import { Point } from
|
|
5
|
-
import { InputValue, remarquableLines } from
|
|
1
|
+
import { Fraction } from "../coefficients";
|
|
2
|
+
import { Line } from "./line";
|
|
3
|
+
import { Vector } from "./vector";
|
|
4
|
+
import { Point } from "./point";
|
|
5
|
+
import type { InputValue, remarquableLines } from "../pimath.interface";
|
|
6
6
|
type TRIANGLE_SIDES = 'AB' | 'AC' | 'BC';
|
|
7
7
|
export declare class Triangle {
|
|
8
8
|
#private;
|
|
9
9
|
constructor(...values: unknown[]);
|
|
10
10
|
parse: (...values: unknown[]) => this;
|
|
11
|
-
/**
|
|
12
|
-
* Clone the Triangle class
|
|
13
|
-
*/
|
|
14
11
|
clone: () => Triangle;
|
|
15
|
-
/**
|
|
16
|
-
* Copy the values from another triangle
|
|
17
|
-
* @param value
|
|
18
|
-
*/
|
|
19
12
|
copy(value: Triangle): this;
|
|
20
13
|
get A(): Point;
|
|
21
14
|
set A(value: Point);
|
|
@@ -80,3 +73,4 @@ export declare class Triangle {
|
|
|
80
73
|
reset(): this;
|
|
81
74
|
}
|
|
82
75
|
export {};
|
|
76
|
+
//# sourceMappingURL=triangle.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { InputValue, IPiMathObject } from
|
|
2
|
-
import { Fraction } from
|
|
3
|
-
import { TupleN } from
|
|
4
|
-
import { Point } from
|
|
1
|
+
import type { InputValue, IPiMathObject } from "../pimath.interface";
|
|
2
|
+
import { Fraction } from "../coefficients";
|
|
3
|
+
import { TupleN } from "./TupleN";
|
|
4
|
+
import { type Point } from "./point";
|
|
5
5
|
export declare class Vector extends TupleN implements IPiMathObject<Vector> {
|
|
6
6
|
constructor(...values: (Vector | Point)[] | InputValue<Fraction>[]);
|
|
7
7
|
parse(...values: (Vector | Point)[] | InputValue<Fraction>[]): this;
|
|
@@ -33,3 +33,4 @@ export declare class Vector extends TupleN implements IPiMathObject<Vector> {
|
|
|
33
33
|
translate(...values: Fraction[]): this;
|
|
34
34
|
unit: () => this;
|
|
35
35
|
}
|
|
36
|
+
//# sourceMappingURL=vector.d.ts.map
|
package/types/helpers.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export declare function wrapVert(str: string, tex?: boolean): string;
|
|
|
4
4
|
export declare function wrapNorm(str: string, tex?: boolean): string;
|
|
5
5
|
export declare function replace_in_array<T>(haystack: string[], search: string, target: string, start?: number, end?: number): T;
|
|
6
6
|
export declare function splitIfOutsideParentheses(value: string, splitChar: string): string[];
|
|
7
|
+
//# sourceMappingURL=helpers.d.ts.map
|
package/types/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Fraction, Root } from
|
|
2
|
-
import { Equation, Factor, LinearSystem, LogicalSet, Matrix, Monom, PolyFactor, Polynom } from
|
|
3
|
-
import { Circle, Line, Line3, Plane3, Point, Sphere3, Triangle, Vector } from
|
|
4
|
-
import { Numeric } from
|
|
5
|
-
import { NumExp } from
|
|
6
|
-
import { Random } from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
1
|
+
import { Fraction, Root } from "./coefficients";
|
|
2
|
+
import { Equation, Factor, LinearSystem, LogicalSet, Matrix, Monom, PolyFactor, Polynom } from "./algebra";
|
|
3
|
+
import { Circle, Line, Line3, Plane3, Point, Sphere3, Triangle, Vector } from "./geometry";
|
|
4
|
+
import { Numeric } from "./numeric";
|
|
5
|
+
import { NumExp } from "piexpression";
|
|
6
|
+
import { Random } from "./randomization/random";
|
|
7
|
+
export * from "./coefficients";
|
|
8
|
+
export * from "./algebra";
|
|
9
|
+
export * from "./geometry";
|
|
10
|
+
export * from "./analyze";
|
|
11
11
|
export { Numeric };
|
|
12
12
|
export { NumExp };
|
|
13
13
|
export { Random };
|
|
14
|
-
export type * from
|
|
15
|
-
export type * from
|
|
14
|
+
export type * from "./pimath.interface";
|
|
15
|
+
export type * from "./randomization/rndTypes";
|
|
16
16
|
declare const PiMath: {
|
|
17
17
|
Numeric: {
|
|
18
18
|
decompose: (value: number) => number[][];
|
|
@@ -38,10 +38,10 @@ declare const PiMath: {
|
|
|
38
38
|
PolyFactor: typeof PolyFactor;
|
|
39
39
|
LogicalSet: typeof LogicalSet;
|
|
40
40
|
Random: {
|
|
41
|
-
equation: (config?: import(
|
|
42
|
-
polynom: (config?: import(
|
|
43
|
-
monom: (config?: import(
|
|
44
|
-
fraction: (config?: import(
|
|
41
|
+
equation: (config?: import(".").randomEquationConfig) => Equation;
|
|
42
|
+
polynom: (config?: import(".").randomPolynomConfig) => Polynom;
|
|
43
|
+
monom: (config?: import(".").randomMonomConfig) => Monom;
|
|
44
|
+
fraction: (config?: import(".").randomCoefficientConfig) => Fraction;
|
|
45
45
|
number: (from: number, to: number, exclude?: number[]) => number;
|
|
46
46
|
numberSym: (max: number, allowZero?: boolean) => number;
|
|
47
47
|
prime: (max: number) => number;
|
|
@@ -50,11 +50,11 @@ declare const PiMath: {
|
|
|
50
50
|
array: <T>(arr: T[], number?: number) => T[];
|
|
51
51
|
item: <T>(arr: T[]) => T;
|
|
52
52
|
shuffle: <T>(arr: T[]) => T[];
|
|
53
|
-
line: (config?: import(
|
|
54
|
-
line3: (config?: import(
|
|
55
|
-
vector: (config?: import(
|
|
56
|
-
point: (config?: import(
|
|
57
|
-
circle: (config?: import(
|
|
53
|
+
line: (config?: import(".").randomGeometryLineConfig) => Line;
|
|
54
|
+
line3: (config?: import(".").randomGeometryLine3Config) => Line3;
|
|
55
|
+
vector: (config?: import(".").randomGeometryPointConfig) => Point;
|
|
56
|
+
point: (config?: import(".").randomGeometryPointConfig) => Point;
|
|
57
|
+
circle: (config?: import(".").randomGeometryCircleConfig) => Circle;
|
|
58
58
|
};
|
|
59
59
|
Geometry: {
|
|
60
60
|
Vector: typeof Vector;
|
|
@@ -69,3 +69,4 @@ declare const PiMath: {
|
|
|
69
69
|
NumExp: typeof NumExp;
|
|
70
70
|
};
|
|
71
71
|
export default PiMath;
|
|
72
|
+
//# sourceMappingURL=index.d.ts.map
|
package/types/numeric.d.ts
CHANGED
|
@@ -1,26 +1,10 @@
|
|
|
1
1
|
declare function decompose(value: number): number[][];
|
|
2
2
|
declare function divideNumbersByGCD(...values: number[]): number[];
|
|
3
|
-
/**
|
|
4
|
-
* Get the list of all dividers of a number.
|
|
5
|
-
* @param value
|
|
6
|
-
*/
|
|
7
3
|
declare function dividers(value: number): number[];
|
|
8
|
-
/**
|
|
9
|
-
* Great Common Divisor
|
|
10
|
-
* @param values : number values
|
|
11
|
-
*/
|
|
12
4
|
declare function greatestCommonDivisor(...values: number[]): number;
|
|
13
|
-
/**
|
|
14
|
-
* Least Common Multiple
|
|
15
|
-
* @param values: list of numbers
|
|
16
|
-
*/
|
|
17
5
|
declare function leastCommonMultiple(...values: number[]): number;
|
|
18
6
|
declare function numberCorrection(value: number, number_of_digits?: number): number;
|
|
19
7
|
declare function periodic(value: number): number;
|
|
20
|
-
/**
|
|
21
|
-
* Get the list of the nth first prime numbers.
|
|
22
|
-
* @param nb : number of primes to choose from
|
|
23
|
-
*/
|
|
24
8
|
declare function primes(nb?: number): number[];
|
|
25
9
|
declare function pythagoreanTripletsWithTarget(target: number, targetIsSquare?: boolean): [number, number, number][];
|
|
26
10
|
declare function round(value: number, decimals?: number): number;
|
|
@@ -39,3 +23,4 @@ export declare const Numeric: {
|
|
|
39
23
|
greatestPower: typeof greatestPower;
|
|
40
24
|
};
|
|
41
25
|
export {};
|
|
26
|
+
//# sourceMappingURL=numeric.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Fraction } from
|
|
2
|
-
import { Equation, Factor, Monom } from
|
|
3
|
-
import { Line, Point, Vector } from
|
|
4
|
-
import { Solution } from
|
|
1
|
+
import type { Fraction } from "./coefficients";
|
|
2
|
+
import type { Equation, Factor, Monom } from "./algebra";
|
|
3
|
+
import type { Line, Point, Vector } from "./geometry";
|
|
4
|
+
import type { Solution } from "./analyze/solution";
|
|
5
5
|
export type InputValue<T> = T | string | number | Fraction;
|
|
6
6
|
export type InputAlgebra<T> = InputValue<T> | Monom;
|
|
7
7
|
export type literalType<T> = Record<string, T>;
|
|
@@ -116,3 +116,4 @@ export interface remarquableLines {
|
|
|
116
116
|
'intersection': Point | null;
|
|
117
117
|
} | null;
|
|
118
118
|
}
|
|
119
|
+
//# sourceMappingURL=pimath.interface.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { randomEquationConfig } from
|
|
2
|
-
import { Equation } from
|
|
1
|
+
import type { randomEquationConfig } from "../rndTypes";
|
|
2
|
+
import { Equation } from "../../algebra/equation";
|
|
3
3
|
export declare function rndEquation(userConfig?: randomEquationConfig): Equation;
|
|
4
|
+
//# sourceMappingURL=rndEquation.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { randomMonomConfig } from
|
|
2
|
-
import { Monom } from
|
|
1
|
+
import type { randomMonomConfig } from "../rndTypes";
|
|
2
|
+
import { Monom } from "../../algebra/monom";
|
|
3
3
|
export declare function rndMonom(userConfig?: randomMonomConfig): Monom;
|
|
4
|
+
//# sourceMappingURL=rndMonom.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { randomPolynomConfig } from
|
|
2
|
-
import { Polynom } from
|
|
1
|
+
import type { randomPolynomConfig } from "../rndTypes";
|
|
2
|
+
import { Polynom } from "../../algebra";
|
|
3
3
|
export declare function rndPolynom(userConfig?: randomPolynomConfig): Polynom;
|
|
4
4
|
export declare function rndFactorablePolynom(userConfig?: randomPolynomConfig): Polynom;
|
|
5
|
+
//# sourceMappingURL=rndPolynom.d.ts.map
|