pimath 0.0.129 → 0.0.130
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/lib/main.ts +42 -0
- package/lib/maths/algebra/equation.ts +891 -0
- package/lib/maths/algebra/linearSystem.ts +369 -0
- package/lib/maths/algebra/logicalset.ts +183 -0
- package/lib/maths/algebra/monom.ts +1027 -0
- package/lib/maths/algebra/polynom.ts +1537 -0
- package/lib/maths/algebra/rational.ts +244 -0
- package/lib/maths/algebra/study/rationalStudy.ts +287 -0
- package/lib/maths/algebra/study.ts +506 -0
- package/lib/maths/coefficients/fraction.ts +593 -0
- package/lib/maths/coefficients/nthRoot.ts +148 -0
- package/lib/maths/geometry/circle.ts +379 -0
- package/lib/maths/geometry/line.ts +604 -0
- package/lib/maths/geometry/point.ts +215 -0
- package/lib/maths/geometry/triangle.ts +368 -0
- package/lib/maths/geometry/vector.ts +243 -0
- package/lib/maths/numeric.ts +162 -0
- package/lib/maths/numexp.ts +198 -0
- package/lib/maths/randomization/random.ts +80 -0
- package/lib/maths/randomization/randomCore.ts +19 -0
- package/lib/maths/randomization/rndFraction.ts +47 -0
- package/lib/maths/randomization/rndGeometryCircle.ts +50 -0
- package/lib/maths/randomization/rndGeometryLine.ts +53 -0
- package/lib/maths/randomization/rndGeometryPoint.ts +69 -0
- package/lib/maths/randomization/rndHelpers.ts +107 -0
- package/lib/maths/randomization/rndMonom.ts +57 -0
- package/lib/maths/randomization/rndPolynom.ts +90 -0
- package/lib/maths/randomization/rndTypes.ts +43 -0
- package/lib/maths/shutingyard.ts +496 -0
- package/package.json +3 -2
package/lib/main.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {Numeric} from "./maths/numeric.ts";
|
|
2
|
+
import {NumExp} from "./maths/numexp.ts";
|
|
3
|
+
import {Shutingyard} from "./maths/shutingyard.ts";
|
|
4
|
+
import {Random} from "./maths/randomization/random.ts";
|
|
5
|
+
import {Fraction} from "./maths/coefficients/fraction.ts";
|
|
6
|
+
import {NthRoot} from "./maths/coefficients/nthRoot.ts";
|
|
7
|
+
import {Monom} from "./maths/algebra/monom.ts";
|
|
8
|
+
import {Polynom} from "./maths/algebra/polynom.ts";
|
|
9
|
+
import {Equation} from "./maths/algebra/equation.ts";
|
|
10
|
+
import {LinearSystem} from "./maths/algebra/linearSystem.ts";
|
|
11
|
+
import {Rational} from "./maths/algebra/rational.ts";
|
|
12
|
+
import {Logicalset} from "./maths/algebra/logicalset.ts";
|
|
13
|
+
import {Vector} from "./maths/geometry/vector.ts";
|
|
14
|
+
import {Line} from "./maths/geometry/line.ts";
|
|
15
|
+
import {Triangle} from "./maths/geometry/triangle.ts";
|
|
16
|
+
import {Circle} from "./maths/geometry/circle.ts";
|
|
17
|
+
import {Point} from "./maths/geometry/point.ts";
|
|
18
|
+
|
|
19
|
+
// Expose as global
|
|
20
|
+
export const PiMath = {
|
|
21
|
+
ShutingYard: Shutingyard,
|
|
22
|
+
Numeric: Numeric,
|
|
23
|
+
NumExp: NumExp,
|
|
24
|
+
Fraction: Fraction,
|
|
25
|
+
Root: NthRoot,
|
|
26
|
+
Monom: Monom,
|
|
27
|
+
Polynom: Polynom,
|
|
28
|
+
Equation: Equation,
|
|
29
|
+
LinearSystem: LinearSystem,
|
|
30
|
+
Rational: Rational,
|
|
31
|
+
Logicalset: Logicalset,
|
|
32
|
+
Random: Random,
|
|
33
|
+
Geometry: {
|
|
34
|
+
Vector: Vector,
|
|
35
|
+
Point: Point,
|
|
36
|
+
Line: Line,
|
|
37
|
+
Triangle: Triangle,
|
|
38
|
+
Circle: Circle
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// (<any>window).PiMath = PiMath
|