pimath 0.0.100 → 0.0.101
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/esm/maths/algebra/monom.d.ts +1 -1
- package/esm/maths/algebra/polynom.d.ts +1 -1
- package/esm/maths/algebra/study.d.ts +1 -1
- package/esm/maths/coefficients/fraction.d.ts +1 -1
- package/esm/maths/expressions/expression.d.ts +1 -1
- package/esm/maths/expressions/polynomexp.bkp.d.ts +1 -1
- package/esm/maths/expressions/polynomexp.d.ts +1 -1
- package/esm/maths/randomization/rndTypes.d.ts +3 -3
- package/esm/maths/shutingyard.d.ts +2 -2
- package/package.json +10 -10
|
@@ -5,7 +5,7 @@ import { literalType, Monom } from './monom';
|
|
|
5
5
|
import { Token } from '../shutingyard';
|
|
6
6
|
import { Fraction } from "../coefficients/fraction";
|
|
7
7
|
import { ISolution } from "./equation";
|
|
8
|
-
export
|
|
8
|
+
export type PolynomParsingType = string | Polynom | number | Fraction | Monom;
|
|
9
9
|
export interface IEuclidian {
|
|
10
10
|
quotient: Polynom;
|
|
11
11
|
reminder: Polynom;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { Rational } from "./rational";
|
|
6
6
|
import { ISolution } from "./equation";
|
|
7
7
|
import { Polynom } from "./polynom";
|
|
8
|
-
export
|
|
8
|
+
export type StudyableFunction = Rational;
|
|
9
9
|
export declare enum ZEROTYPE {
|
|
10
10
|
ZERO = "z",
|
|
11
11
|
DEFENCE = "d",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Polynom, PolynomParsingType } from "../algebra/polynom";
|
|
2
2
|
import { Fraction, FractionParsingType } from "../coefficients/fraction";
|
|
3
|
-
|
|
3
|
+
type PolynomExpMathFunctionType = {
|
|
4
4
|
name: string;
|
|
5
5
|
fn: Function;
|
|
6
6
|
tex: string;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type randomCoefficientConfig = {
|
|
2
2
|
negative?: boolean;
|
|
3
3
|
max?: number;
|
|
4
4
|
reduced?: boolean;
|
|
5
5
|
zero?: boolean;
|
|
6
6
|
natural?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type randomMonomConfig = {
|
|
9
9
|
letters?: string;
|
|
10
10
|
degree?: number;
|
|
11
11
|
fraction?: boolean | randomCoefficientConfig;
|
|
12
12
|
zero?: boolean;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type randomPolynomConfig = randomMonomConfig & {
|
|
15
15
|
unit?: boolean;
|
|
16
16
|
factorable?: boolean;
|
|
17
17
|
allowNullMonom?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type tokenType = {
|
|
2
2
|
[key: string]: {
|
|
3
3
|
precedence: number;
|
|
4
4
|
associative: string;
|
|
@@ -22,7 +22,7 @@ export declare enum ShutingyardMode {
|
|
|
22
22
|
SET = "set",
|
|
23
23
|
NUMERIC = "numeric"
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type Token = {
|
|
26
26
|
token: string;
|
|
27
27
|
tokenType: string;
|
|
28
28
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pimath",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.101",
|
|
4
4
|
"description": "A math library for teacher :)",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "mocha -r ts-node/register 'tests/**/*.test.ts'",
|
|
@@ -17,18 +17,18 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/chai": "*",
|
|
19
19
|
"@types/mocha": "*",
|
|
20
|
-
"@types/node": "^18.11.
|
|
21
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
22
|
-
"@typescript-eslint/parser": "^5.
|
|
20
|
+
"@types/node": "^18.11.17",
|
|
21
|
+
"@typescript-eslint/eslint-plugin": "^5.47.0",
|
|
22
|
+
"@typescript-eslint/parser": "^5.47.0",
|
|
23
23
|
"chai": "*",
|
|
24
24
|
"mocha": "*",
|
|
25
|
-
"eslint": "^8.
|
|
26
|
-
"ts-loader": "^9.4.
|
|
25
|
+
"eslint": "^8.30.0",
|
|
26
|
+
"ts-loader": "^9.4.2",
|
|
27
27
|
"ts-node": "^10.9.1",
|
|
28
|
-
"typedoc": "^0.23.
|
|
29
|
-
"typescript": "
|
|
30
|
-
"webpack": "^5.
|
|
28
|
+
"typedoc": "^0.23.23",
|
|
29
|
+
"typescript": "4.9.4",
|
|
30
|
+
"webpack": "^5.75.0",
|
|
31
31
|
"webpack-bundle-analyzer": "^4.7.0",
|
|
32
|
-
"webpack-cli": "^
|
|
32
|
+
"webpack-cli": "^5.0.1"
|
|
33
33
|
}
|
|
34
34
|
}
|