pimath 0.0.127 → 0.0.129
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/main.d.ts +39 -0
- package/{esm → dist}/maths/algebra/equation.d.ts +11 -10
- package/{esm → dist}/maths/algebra/linearSystem.d.ts +5 -4
- package/{esm → dist}/maths/algebra/monom.d.ts +5 -4
- package/{esm → dist}/maths/algebra/polynom.d.ts +11 -13
- package/{esm → dist}/maths/algebra/rational.d.ts +7 -9
- package/dist/maths/algebra/study/rationalStudy.d.ts +14 -0
- package/{esm → dist}/maths/algebra/study.d.ts +4 -7
- package/{esm → dist}/maths/geometry/circle.d.ts +9 -8
- package/{esm → dist}/maths/geometry/line.d.ts +17 -14
- package/{esm → dist}/maths/geometry/point.d.ts +11 -9
- package/{esm → dist}/maths/geometry/triangle.d.ts +4 -3
- package/{esm → dist}/maths/geometry/vector.d.ts +7 -10
- package/{esm → dist}/maths/randomization/random.d.ts +10 -7
- package/{esm → dist}/maths/randomization/rndFraction.d.ts +4 -3
- package/dist/maths/randomization/rndGeometryCircle.d.ts +13 -0
- package/{esm → dist}/maths/randomization/rndGeometryLine.d.ts +4 -3
- package/{esm → dist}/maths/randomization/rndGeometryPoint.d.ts +4 -3
- package/{esm → dist}/maths/randomization/rndMonom.d.ts +5 -4
- package/{esm → dist}/maths/randomization/rndPolynom.d.ts +5 -4
- package/{esm → dist}/maths/randomization/rndTypes.d.ts +7 -1
- package/dist/pimath.js +4239 -7819
- package/package.json +13 -7
- package/.eslintrc.js +0 -24
- package/.idea/$CACHE_FILE$ +0 -6
- package/.idea/PI.iml +0 -14
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/php.xml +0 -19
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_07_11_2023_08_30_[Default_Changelist]/shelved.patch +0 -192
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_07_11_2023_08_30_[Default_Changelist]1/shelved.patch +0 -0
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_07_11_2023_08_30__Default_Changelist_.xml +0 -4
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_09_11_2023_10_43_[Default_Changelist]/shelved.patch +0 -2404
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_09_11_2023_10_43__Default_Changelist_.xml +0 -4
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_09_11_2023_11_01_[Default_Changelist]/shelved.patch +0 -1362
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_09_11_2023_11_01__Default_Changelist_.xml +0 -4
- package/.idea/shelf/Uncommitted_changes_before_Update_at_24_07_2023_15_31_[Default_Changelist]/shelved.patch +0 -90
- package/.idea/shelf/Uncommitted_changes_before_Update_at_24_07_2023_15_31__Default_Changelist_.xml +0 -4
- package/.idea/vcs.xml +0 -6
- package/dev/pimath.js +0 -7945
- package/dev/pimath.js.map +0 -1
- package/dist/pimath.js.map +0 -1
- package/dist/pimath.min.js +0 -2
- package/dist/pimath.min.js.map +0 -1
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -78
- package/docs/assets/main.js +0 -59
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1383
- package/docs/classes/Logicalset.Logicalset.html +0 -217
- package/docs/classes/Polynom.Rational.html +0 -397
- package/docs/classes/Vector-1.Vector.html +0 -490
- package/docs/classes/Vector.Point.html +0 -337
- package/docs/classes/algebra_equation.Equation.html +0 -790
- package/docs/classes/algebra_linearSystem.LinearSystem.html +0 -404
- package/docs/classes/algebra_monom.Monom.html +0 -962
- package/docs/classes/algebra_polynom.Polynom.html +0 -1275
- package/docs/classes/coefficients_fraction.Fraction.html +0 -934
- package/docs/classes/geometry_circle.Circle.html +0 -472
- package/docs/classes/geometry_line.Line.html +0 -774
- package/docs/classes/geometry_triangle.Triangle.html +0 -429
- package/docs/classes/numeric.Numeric.html +0 -265
- package/docs/classes/shutingyard.Shutingyard.html +0 -250
- package/docs/enums/algebra_equation.PARTICULAR_SOLUTION.html +0 -83
- package/docs/enums/geometry_line.LinePropriety.html +0 -97
- package/docs/enums/shutingyard.ShutingyardMode.html +0 -97
- package/docs/enums/shutingyard.ShutingyardType.html +0 -111
- package/docs/index.html +0 -63
- package/docs/interfaces/algebra_equation.ISolution.html +0 -105
- package/docs/interfaces/algebra_polynom.IEuclidian.html +0 -87
- package/docs/interfaces/geometry_triangle.remarquableLines.html +0 -163
- package/docs/modules/Logicalset.html +0 -65
- package/docs/modules/Polynom.html +0 -65
- package/docs/modules/Vector-1.html +0 -65
- package/docs/modules/Vector.html +0 -65
- package/docs/modules/algebra_equation.html +0 -69
- package/docs/modules/algebra_linearSystem.html +0 -61
- package/docs/modules/algebra_monom.html +0 -65
- package/docs/modules/algebra_polynom.html +0 -69
- package/docs/modules/coefficients_fraction.html +0 -65
- package/docs/modules/geometry_circle.html +0 -61
- package/docs/modules/geometry_line.html +0 -65
- package/docs/modules/geometry_triangle.html +0 -65
- package/docs/modules/numeric.html +0 -61
- package/docs/modules/shutingyard.html +0 -75
- package/docs/types/algebra_monom.literalType.html +0 -61
- package/docs/types/algebra_polynom.PolynomParsingType.html +0 -56
- package/docs/types/coefficients_fraction.FractionParsingType.html +0 -56
- package/docs/types/shutingyard.Token.html +0 -63
- package/docs/types/shutingyard.tokenType.html +0 -68
- package/docs/variables/shutingyard.tokenConstant.html +0 -61
- package/esm/index.d.ts +0 -38
- package/esm/index.js +0 -44
- package/esm/index.js.map +0 -1
- package/esm/maths/algebra/equation.js +0 -797
- package/esm/maths/algebra/equation.js.map +0 -1
- package/esm/maths/algebra/linearSystem.js +0 -279
- package/esm/maths/algebra/linearSystem.js.map +0 -1
- package/esm/maths/algebra/logicalset.js +0 -158
- package/esm/maths/algebra/logicalset.js.map +0 -1
- package/esm/maths/algebra/monom.js +0 -909
- package/esm/maths/algebra/monom.js.map +0 -1
- package/esm/maths/algebra/polynom.js +0 -1305
- package/esm/maths/algebra/polynom.js.map +0 -1
- package/esm/maths/algebra/rational.js +0 -195
- package/esm/maths/algebra/rational.js.map +0 -1
- package/esm/maths/algebra/study/rationalStudy.d.ts +0 -28
- package/esm/maths/algebra/study/rationalStudy.js +0 -244
- package/esm/maths/algebra/study/rationalStudy.js.map +0 -1
- package/esm/maths/algebra/study.js +0 -380
- package/esm/maths/algebra/study.js.map +0 -1
- package/esm/maths/coefficients/fraction.js +0 -517
- package/esm/maths/coefficients/fraction.js.map +0 -1
- package/esm/maths/coefficients/nthRoot.js +0 -137
- package/esm/maths/coefficients/nthRoot.js.map +0 -1
- package/esm/maths/geometry/circle.js +0 -324
- package/esm/maths/geometry/circle.js.map +0 -1
- package/esm/maths/geometry/line.js +0 -485
- package/esm/maths/geometry/line.js.map +0 -1
- package/esm/maths/geometry/point.js +0 -167
- package/esm/maths/geometry/point.js.map +0 -1
- package/esm/maths/geometry/triangle.js +0 -276
- package/esm/maths/geometry/triangle.js.map +0 -1
- package/esm/maths/geometry/vector.js +0 -198
- package/esm/maths/geometry/vector.js.map +0 -1
- package/esm/maths/numeric.js +0 -136
- package/esm/maths/numeric.js.map +0 -1
- package/esm/maths/numexp.js +0 -186
- package/esm/maths/numexp.js.map +0 -1
- package/esm/maths/randomization/random.js +0 -79
- package/esm/maths/randomization/random.js.map +0 -1
- package/esm/maths/randomization/randomCore.js +0 -22
- package/esm/maths/randomization/randomCore.js.map +0 -1
- package/esm/maths/randomization/rndFraction.js +0 -44
- package/esm/maths/randomization/rndFraction.js.map +0 -1
- package/esm/maths/randomization/rndGeometryLine.js +0 -46
- package/esm/maths/randomization/rndGeometryLine.js.map +0 -1
- package/esm/maths/randomization/rndGeometryPoint.js +0 -61
- package/esm/maths/randomization/rndGeometryPoint.js.map +0 -1
- package/esm/maths/randomization/rndHelpers.js +0 -98
- package/esm/maths/randomization/rndHelpers.js.map +0 -1
- package/esm/maths/randomization/rndMonom.js +0 -53
- package/esm/maths/randomization/rndMonom.js.map +0 -1
- package/esm/maths/randomization/rndPolynom.js +0 -75
- package/esm/maths/randomization/rndPolynom.js.map +0 -1
- package/esm/maths/randomization/rndTypes.js +0 -3
- package/esm/maths/randomization/rndTypes.js.map +0 -1
- package/esm/maths/shutingyard.js +0 -443
- package/esm/maths/shutingyard.js.map +0 -1
- package/public/demo.css +0 -3
- package/public/index.html +0 -283
- package/public/matrices.html +0 -100
- package/public/playground.html +0 -168
- package/src/index.ts +0 -42
- package/src/maths/algebra/equation.ts +0 -897
- package/src/maths/algebra/linearSystem.ts +0 -370
- package/src/maths/algebra/logicalset.ts +0 -183
- package/src/maths/algebra/monom.ts +0 -1028
- package/src/maths/algebra/polynom.ts +0 -1537
- package/src/maths/algebra/rational.ts +0 -240
- package/src/maths/algebra/study/rationalStudy.ts +0 -287
- package/src/maths/algebra/study.ts +0 -506
- package/src/maths/coefficients/fraction.ts +0 -593
- package/src/maths/coefficients/nthRoot.ts +0 -148
- package/src/maths/geometry/circle.ts +0 -382
- package/src/maths/geometry/line.ts +0 -604
- package/src/maths/geometry/point.ts +0 -215
- package/src/maths/geometry/triangle.ts +0 -368
- package/src/maths/geometry/vector.ts +0 -242
- package/src/maths/numeric.ts +0 -162
- package/src/maths/numexp.ts +0 -184
- package/src/maths/randomization/random.ts +0 -80
- package/src/maths/randomization/randomCore.ts +0 -19
- package/src/maths/randomization/rndFraction.ts +0 -47
- package/src/maths/randomization/rndGeometryCircle.ts +0 -50
- package/src/maths/randomization/rndGeometryLine.ts +0 -53
- package/src/maths/randomization/rndGeometryPoint.ts +0 -69
- package/src/maths/randomization/rndHelpers.ts +0 -107
- package/src/maths/randomization/rndMonom.ts +0 -57
- package/src/maths/randomization/rndPolynom.ts +0 -90
- package/src/maths/randomization/rndTypes.ts +0 -43
- package/src/maths/shutingyard.ts +0 -496
- package/tests/algebra/equation.test.ts +0 -64
- package/tests/algebra/linear.test.ts +0 -58
- package/tests/algebra/monom.test.ts +0 -78
- package/tests/algebra/polynom.test.ts +0 -343
- package/tests/algebra/rationnal.test.ts +0 -64
- package/tests/algebra/study.test.ts +0 -48
- package/tests/coefficients/fraction.test.ts +0 -131
- package/tests/custom.test.ts +0 -33
- package/tests/geometry/circle.test.ts +0 -404
- package/tests/geometry/line.test.ts +0 -36
- package/tests/numeric.test.ts +0 -43
- package/tests/numexp.test.ts +0 -89
- package/tests/shutingyard.test.ts +0 -58
- package/tsconfig.json +0 -41
- package/tsconfig.testing.json +0 -28
- package/typedoc.katex.js +0 -11
- package/webpack-production-min.config.js +0 -26
- package/webpack-production.config.js +0 -26
- package/webpack.config.js +0 -26
- package/{esm → dist}/maths/algebra/logicalset.d.ts +6 -6
- package/{esm → dist}/maths/coefficients/fraction.d.ts +0 -0
- package/{esm → dist}/maths/coefficients/nthRoot.d.ts +0 -0
- package/{esm → dist}/maths/numeric.d.ts +0 -0
- package/{esm → dist}/maths/numexp.d.ts +3 -3
- /package/{esm → dist}/maths/randomization/randomCore.d.ts +0 -0
- /package/{esm → dist}/maths/randomization/rndHelpers.d.ts +0 -0
- /package/{esm → dist}/maths/shutingyard.d.ts +0 -0
package/tsconfig.json
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"typedocOptions": {
|
|
3
|
-
"entryPoints": [
|
|
4
|
-
"src/maths/algebra/equation.ts",
|
|
5
|
-
"src/maths/algebra/linearSystem.ts",
|
|
6
|
-
"src/maths/algebra/logicalset.ts",
|
|
7
|
-
"src/maths/algebra/monom.ts",
|
|
8
|
-
"src/maths/algebra/polynom.ts",
|
|
9
|
-
"src/maths/algebra/rational.ts",
|
|
10
|
-
"src/maths/coefficients/fraction.ts",
|
|
11
|
-
"src/maths/coefficients/nthroot.ts",
|
|
12
|
-
"src/maths/expressions/numexp.ts",
|
|
13
|
-
"src/maths/expressions/polynomexp.ts",
|
|
14
|
-
"src/maths/geometry/circle.ts",
|
|
15
|
-
"src/maths/geometry/line.ts",
|
|
16
|
-
"src/maths/geometry/point.ts",
|
|
17
|
-
"src/maths/geometry/triangle.ts",
|
|
18
|
-
"src/maths/geometry/vector.ts",
|
|
19
|
-
"src/maths/numeric.ts",
|
|
20
|
-
"src/maths/shutingyard.ts",
|
|
21
|
-
],
|
|
22
|
-
"plugin": [
|
|
23
|
-
"./typedoc.katex.js"
|
|
24
|
-
],
|
|
25
|
-
"out": "docs"
|
|
26
|
-
},
|
|
27
|
-
"compilerOptions": {
|
|
28
|
-
"outDir": "./esm/",
|
|
29
|
-
"noImplicitAny": true,
|
|
30
|
-
"module": "commonjs",
|
|
31
|
-
"target": "es2021",
|
|
32
|
-
"allowJs": true,
|
|
33
|
-
"sourceMap": true,
|
|
34
|
-
"moduleResolution": "node",
|
|
35
|
-
"declaration": true,
|
|
36
|
-
"removeComments": false
|
|
37
|
-
},
|
|
38
|
-
"include": [
|
|
39
|
-
"./src/**/*"
|
|
40
|
-
]
|
|
41
|
-
}
|
package/tsconfig.testing.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"typedocOptions": {
|
|
3
|
-
"entryPoints": [
|
|
4
|
-
"src/maths/algebra/index.ts",
|
|
5
|
-
"src/maths/geometry/index.ts",
|
|
6
|
-
"src/maths/coefficients/index.ts",
|
|
7
|
-
"src/maths/random/index.ts",
|
|
8
|
-
"src/maths/numeric.ts",
|
|
9
|
-
"src/maths/shutingyard.ts"
|
|
10
|
-
],
|
|
11
|
-
"out": "docs"
|
|
12
|
-
},
|
|
13
|
-
"compilerOptions": {
|
|
14
|
-
"outDir": "./esm/",
|
|
15
|
-
"noImplicitAny": true,
|
|
16
|
-
"module": "commonjs",
|
|
17
|
-
"target": "esnext",
|
|
18
|
-
"allowJs": true,
|
|
19
|
-
"jsx": "react",
|
|
20
|
-
"sourceMap": true,
|
|
21
|
-
"moduleResolution": "node",
|
|
22
|
-
"declaration": true,
|
|
23
|
-
"removeComments": true
|
|
24
|
-
},
|
|
25
|
-
"include": [
|
|
26
|
-
"./tests/**/*"
|
|
27
|
-
]
|
|
28
|
-
}
|
package/typedoc.katex.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const { JSX } = require("typedoc");
|
|
2
|
-
|
|
3
|
-
exports.load = function (app) {
|
|
4
|
-
app.renderer.hooks.on("head.end", () => {
|
|
5
|
-
return JSX.createElement(JSX.Fragment, null,
|
|
6
|
-
JSX.createElement("link", { rel: "stylesheet", href: "https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.css", integrity: "sha384-R4558gYOUz8mP9YWpZJjofhk+zx0AS11p36HnD2ZKj/6JR5z27gSSULCNHIRReVs", crossorigin: "anonymous" },
|
|
7
|
-
JSX.createElement("script", { defer: true, src: "https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.js", integrity: "sha384-z1fJDqw8ZApjGO3/unPWUPsIymfsJmyrDVWC8Tv/a1HeOtGmkwNd/7xUS0Xcnvsx", crossorigin: "anonymous" }),
|
|
8
|
-
JSX.createElement("script", { defer: true, src: "https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/contrib/auto-render.min.js", integrity: "sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR", crossorigin: "anonymous", onload: "renderMathInElement(document.body);" })),
|
|
9
|
-
"}); }");
|
|
10
|
-
});
|
|
11
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
mode: 'production',
|
|
5
|
-
entry: './src/index.ts',
|
|
6
|
-
devtool: 'source-map',
|
|
7
|
-
module: {
|
|
8
|
-
rules: [
|
|
9
|
-
{
|
|
10
|
-
test: /\.tsx?$/,
|
|
11
|
-
use: 'ts-loader',
|
|
12
|
-
exclude: /node_module/,
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
},
|
|
16
|
-
resolve: {
|
|
17
|
-
extensions: ['.tsx','.ts', '.js'],
|
|
18
|
-
},
|
|
19
|
-
output: {
|
|
20
|
-
filename: 'pimath.min.js',
|
|
21
|
-
path: path.resolve(__dirname, 'dist'),
|
|
22
|
-
},
|
|
23
|
-
optimization: {
|
|
24
|
-
minimize: true
|
|
25
|
-
}
|
|
26
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
mode: 'production',
|
|
5
|
-
entry: './src/index.ts',
|
|
6
|
-
devtool: 'source-map',
|
|
7
|
-
module: {
|
|
8
|
-
rules: [
|
|
9
|
-
{
|
|
10
|
-
test: /\.tsx?$/,
|
|
11
|
-
use: 'ts-loader',
|
|
12
|
-
exclude: /node_module/,
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
},
|
|
16
|
-
resolve: {
|
|
17
|
-
extensions: ['.tsx','.ts', '.js'],
|
|
18
|
-
},
|
|
19
|
-
output: {
|
|
20
|
-
filename: 'pimath.js',
|
|
21
|
-
path: path.resolve(__dirname, 'dist'),
|
|
22
|
-
},
|
|
23
|
-
optimization: {
|
|
24
|
-
minimize: false
|
|
25
|
-
}
|
|
26
|
-
};
|
package/webpack.config.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
mode: 'development',
|
|
5
|
-
entry: './src/index.ts',
|
|
6
|
-
devtool: 'source-map',
|
|
7
|
-
module: {
|
|
8
|
-
rules: [
|
|
9
|
-
{
|
|
10
|
-
test: /\.tsx?$/,
|
|
11
|
-
use: 'ts-loader',
|
|
12
|
-
exclude: /node_module/,
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
},
|
|
16
|
-
resolve: {
|
|
17
|
-
extensions: ['.tsx','.ts', '.js'],
|
|
18
|
-
},
|
|
19
|
-
output: {
|
|
20
|
-
filename: 'pimath.js',
|
|
21
|
-
path: path.resolve(__dirname, 'dev'),
|
|
22
|
-
},
|
|
23
|
-
optimization: {
|
|
24
|
-
minimize: false
|
|
25
|
-
}
|
|
26
|
-
};
|
|
@@ -14,15 +14,15 @@ export declare class Logicalset {
|
|
|
14
14
|
*/
|
|
15
15
|
constructor(value: string);
|
|
16
16
|
get isLogicalset(): boolean;
|
|
17
|
-
private parse;
|
|
18
|
-
evaluate(tokenSets: {
|
|
19
|
-
[key: string]: unknown[];
|
|
20
|
-
}, reference?: unknown[]): unknown[];
|
|
21
|
-
vennAB(): any[];
|
|
22
|
-
vennABC(): any[];
|
|
23
17
|
get rpn(): {
|
|
24
18
|
token: string;
|
|
25
19
|
tokenType: string;
|
|
26
20
|
}[];
|
|
27
21
|
get tex(): string;
|
|
22
|
+
evaluate(tokenSets: {
|
|
23
|
+
[key: string]: unknown[];
|
|
24
|
+
}, reference?: unknown[]): unknown[];
|
|
25
|
+
vennAB(): any[];
|
|
26
|
+
vennABC(): any[];
|
|
27
|
+
private parse;
|
|
28
28
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -10,10 +10,10 @@ export declare class NumExp {
|
|
|
10
10
|
get isValid(): boolean;
|
|
11
11
|
set isValid(value: boolean);
|
|
12
12
|
get expression(): string;
|
|
13
|
-
private _extractDecimalPart;
|
|
14
|
-
private _numberCorrection;
|
|
15
|
-
private _addToStack;
|
|
16
13
|
evaluate(values?: {
|
|
17
14
|
[Key: string]: number;
|
|
18
15
|
}): number;
|
|
16
|
+
private _extractDecimalPart;
|
|
17
|
+
private _numberCorrection;
|
|
18
|
+
private _addToStack;
|
|
19
19
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|