pimath 0.1.12 → 0.1.14
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 +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -1
- package/types/randomization/random.d.ts +9 -9
package/dist/pimath.js
CHANGED
|
@@ -2240,7 +2240,7 @@ const me = class me {
|
|
|
2240
2240
|
return this.add(...e.map((t) => t.opposite()));
|
|
2241
2241
|
}
|
|
2242
2242
|
tableOfSigns() {
|
|
2243
|
-
const e = this.getZeroes(), t = s(this, E).map((n) => ({ factor: n, tableOfSigns: n.tableOfSigns(e) }));
|
|
2243
|
+
const e = this.getZeroes(), t = s(this, E).map((n) => ({ factor: n.clone(), tableOfSigns: n.tableOfSigns(e) }));
|
|
2244
2244
|
return { signs: t.map((n) => n.tableOfSigns).reduce((n, r) => (n.length === 0 ? n = r.signs : r.signs.forEach((l, c) => {
|
|
2245
2245
|
switch (l) {
|
|
2246
2246
|
case "d":
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { Plane3 } from './geometry/plane3';
|
|
|
16
16
|
import { Matrix } from './geometry/matrix';
|
|
17
17
|
import { NumExp } from 'piexpression';
|
|
18
18
|
import { LogicalSet } from './algebra/logicalset';
|
|
19
|
+
export type * from './pimath.interface';
|
|
19
20
|
declare const PiMath: {
|
|
20
21
|
Numeric: {
|
|
21
22
|
decompose: (value: number) => number[][];
|
|
@@ -69,3 +70,4 @@ declare const PiMath: {
|
|
|
69
70
|
NumExp: typeof NumExp;
|
|
70
71
|
};
|
|
71
72
|
export default PiMath;
|
|
73
|
+
export type { Fraction, NthRoot, Monom, Polynom, Equation, Matrix, LinearSystem, Factor, PolyFactor, LogicalSet, NumExp, Vector, Point, Line, Triangle, Circle, Line3, Plane3, };
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAA;AAChD,OAAO,EAAC,OAAO,EAAC,MAAM,wBAAwB,CAAA;AAC9C,OAAO,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAA;AACrC,OAAO,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAA;AACzC,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAA;AACvC,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAC,IAAI,EAAC,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAA;AAKxC,OAAO,EAAC,MAAM,EAAC,MAAM,cAAc,CAAA;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAA;AAE/C,mBAAmB,oBAAoB,CAAA;AAavC,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAeX,CAAA;AAGD,eAAe,MAAM,CAAA;AACrB,YAAY,EACR,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,MAAM,EACN,UAAU,EACV,UAAU,EACV,MAAM,EACN,MAAM,EACN,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,KAAK,EACL,MAAM,GACT,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { randomCoefficientConfig, randomEquationConfig, randomGeometryCircleConfig, randomGeometryLine3Config, randomGeometryLineConfig, randomGeometryPointConfig, randomMonomConfig, randomPolynomConfig } from './rndTypes';
|
|
2
2
|
export type * from './rndTypes';
|
|
3
3
|
export declare const Random: {
|
|
4
|
-
equation: (config?: randomEquationConfig) => import('
|
|
5
|
-
polynom: (config?: randomPolynomConfig) => import('
|
|
6
|
-
monom: (config?: randomMonomConfig) => import('
|
|
7
|
-
fraction: (config?: randomCoefficientConfig) => import('
|
|
4
|
+
equation: (config?: randomEquationConfig) => import('..').Equation;
|
|
5
|
+
polynom: (config?: randomPolynomConfig) => import('..').Polynom;
|
|
6
|
+
monom: (config?: randomMonomConfig) => import('..').Monom;
|
|
7
|
+
fraction: (config?: randomCoefficientConfig) => import('..').Fraction;
|
|
8
8
|
number: (from: number, to: number, exclude?: number[]) => number;
|
|
9
9
|
numberSym: (max: number, allowZero?: boolean) => number;
|
|
10
10
|
prime: (max: number) => number;
|
|
@@ -12,9 +12,9 @@ export declare const Random: {
|
|
|
12
12
|
array: <T>(arr: T[], number?: number) => T[];
|
|
13
13
|
item: <T>(arr: T[]) => T;
|
|
14
14
|
shuffle: <T>(arr: T[]) => T[];
|
|
15
|
-
line: (config?: randomGeometryLineConfig) => import('
|
|
16
|
-
line3: (config?: randomGeometryLine3Config) => import('
|
|
17
|
-
vector: (config?: randomGeometryPointConfig) => import('
|
|
18
|
-
point: (config?: randomGeometryPointConfig) => import('
|
|
19
|
-
circle: (config?: randomGeometryCircleConfig) => import('
|
|
15
|
+
line: (config?: randomGeometryLineConfig) => import('..').Line;
|
|
16
|
+
line3: (config?: randomGeometryLine3Config) => import('..').Line3;
|
|
17
|
+
vector: (config?: randomGeometryPointConfig) => import('..').Point;
|
|
18
|
+
point: (config?: randomGeometryPointConfig) => import('..').Point;
|
|
19
|
+
circle: (config?: randomGeometryCircleConfig) => import('..').Circle;
|
|
20
20
|
};
|