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.
Files changed (50) hide show
  1. package/dist/pimath.js +5581 -5042
  2. package/dist/pimath.js.map +1 -1
  3. package/package.json +16 -16
  4. package/src/algebra/equation.ts +21 -22
  5. package/src/algebra/polynom.ts +19 -16
  6. package/types/algebra/equation.d.ts +6 -58
  7. package/types/algebra/equation.d.ts.map +1 -1
  8. package/types/algebra/equationSolver.d.ts +4 -3
  9. package/types/algebra/factor.d.ts +4 -3
  10. package/types/algebra/index.d.ts +1 -0
  11. package/types/algebra/linearSystem.d.ts +6 -5
  12. package/types/algebra/logicalset.d.ts +1 -7
  13. package/types/algebra/matrix.d.ts +4 -3
  14. package/types/algebra/monom.d.ts +3 -115
  15. package/types/algebra/operations.d.ts +2 -1
  16. package/types/algebra/polyFactor.d.ts +6 -14
  17. package/types/algebra/polynom.d.ts +6 -36
  18. package/types/algebra/polynom.d.ts.map +1 -1
  19. package/types/analyze/index.d.ts +3 -2
  20. package/types/analyze/solution.d.ts +4 -3
  21. package/types/analyze/tableOfSigns.d.ts +4 -3
  22. package/types/coefficients/fraction.d.ts +2 -14
  23. package/types/coefficients/index.d.ts +1 -0
  24. package/types/coefficients/root.d.ts +3 -5
  25. package/types/geometry/TupleN.d.ts +3 -2
  26. package/types/geometry/circle.d.ts +6 -15
  27. package/types/geometry/geomMath.d.ts +4 -3
  28. package/types/geometry/index.d.ts +1 -0
  29. package/types/geometry/line.d.ts +7 -16
  30. package/types/geometry/line3.d.ts +5 -9
  31. package/types/geometry/plane3.d.ts +6 -5
  32. package/types/geometry/point.d.ts +6 -5
  33. package/types/geometry/sphere3.d.ts +5 -4
  34. package/types/geometry/triangle.d.ts +6 -12
  35. package/types/geometry/vector.d.ts +5 -4
  36. package/types/helpers.d.ts +1 -0
  37. package/types/index.d.ts +22 -21
  38. package/types/numeric.d.ts +1 -16
  39. package/types/pimath.interface.d.ts +5 -4
  40. package/types/randomization/algebra/rndEquation.d.ts +3 -2
  41. package/types/randomization/algebra/rndMonom.d.ts +3 -2
  42. package/types/randomization/algebra/rndPolynom.d.ts +3 -2
  43. package/types/randomization/coefficient/rndFraction.d.ts +3 -2
  44. package/types/randomization/geometry/rndCircle.d.ts +3 -2
  45. package/types/randomization/geometry/rndLine.d.ts +3 -2
  46. package/types/randomization/geometry/rndLine3.d.ts +3 -2
  47. package/types/randomization/geometry/rndVector.d.ts +3 -2
  48. package/types/randomization/random.d.ts +11 -10
  49. package/types/randomization/rndHelpers.d.ts +1 -14
  50. package/types/randomization/rndTypes.d.ts +2 -1
@@ -1,3 +1,4 @@
1
- import { randomCoefficientConfig } from '../rndTypes';
2
- import { Fraction } from '../../coefficients';
1
+ import type { randomCoefficientConfig } from "../rndTypes";
2
+ import { Fraction } from "../../coefficients";
3
3
  export declare function rndFraction(userConfig?: randomCoefficientConfig): Fraction;
4
+ //# sourceMappingURL=rndFraction.d.ts.map
@@ -1,3 +1,4 @@
1
- import { Circle } from '../../geometry/circle';
2
- import { randomGeometryCircleConfig } from '../rndTypes';
1
+ import { Circle } from "../../geometry/circle";
2
+ import type { randomGeometryCircleConfig } from "../rndTypes";
3
3
  export declare function rndCircle(userConfig?: randomGeometryCircleConfig): Circle;
4
+ //# sourceMappingURL=rndCircle.d.ts.map
@@ -1,3 +1,4 @@
1
- import { Line } from '../../geometry/line';
2
- import { randomGeometryLineConfig } from '../rndTypes';
1
+ import { Line } from "../../geometry/line";
2
+ import type { randomGeometryLineConfig } from "../rndTypes";
3
3
  export declare function rndLine(userConfig?: randomGeometryLineConfig): Line;
4
+ //# sourceMappingURL=rndLine.d.ts.map
@@ -1,3 +1,4 @@
1
- import { Line3 } from '../../geometry/line3';
2
- import { randomGeometryLine3Config } from '../rndTypes';
1
+ import { Line3 } from "../../geometry/line3";
2
+ import type { randomGeometryLine3Config } from "../rndTypes";
3
3
  export declare function rndLine3(userConfig?: randomGeometryLine3Config): Line3;
4
+ //# sourceMappingURL=rndLine3.d.ts.map
@@ -1,3 +1,4 @@
1
- import { randomGeometryPointConfig } from '../rndTypes';
2
- import { Point } from '../../geometry/point';
1
+ import type { randomGeometryPointConfig } from "../rndTypes";
2
+ import { Point } from "../../geometry/point";
3
3
  export declare function rndVector(userConfig?: randomGeometryPointConfig): Point;
4
+ //# sourceMappingURL=rndVector.d.ts.map
@@ -1,11 +1,11 @@
1
- import { randomCoefficientConfig, randomEquationConfig, randomGeometryCircleConfig, randomGeometryLine3Config, randomGeometryLineConfig, randomGeometryPointConfig, randomMonomConfig, randomPolynomConfig } from './rndTypes';
2
- import { Point } from '../geometry';
3
- export type * from './rndTypes';
1
+ import type { randomCoefficientConfig, randomEquationConfig, randomGeometryCircleConfig, randomGeometryLine3Config, randomGeometryLineConfig, randomGeometryPointConfig, randomMonomConfig, randomPolynomConfig } from "./rndTypes";
2
+ import { Point } from "../geometry";
3
+ export type * from "./rndTypes";
4
4
  export declare const Random: {
5
- equation: (config?: randomEquationConfig) => import('..').Equation;
6
- polynom: (config?: randomPolynomConfig) => import('..').Polynom;
7
- monom: (config?: randomMonomConfig) => import('..').Monom;
8
- fraction: (config?: randomCoefficientConfig) => import('..').Fraction;
5
+ equation: (config?: randomEquationConfig) => import("..").Equation;
6
+ polynom: (config?: randomPolynomConfig) => import("..").Polynom;
7
+ monom: (config?: randomMonomConfig) => import("..").Monom;
8
+ fraction: (config?: randomCoefficientConfig) => import("..").Fraction;
9
9
  number: (from: number, to: number, exclude?: number[]) => number;
10
10
  numberSym: (max: number, allowZero?: boolean) => number;
11
11
  prime: (max: number) => number;
@@ -14,9 +14,10 @@ export declare const Random: {
14
14
  array: <T>(arr: T[], number?: number) => T[];
15
15
  item: <T>(arr: T[]) => T;
16
16
  shuffle: <T>(arr: T[]) => T[];
17
- line: (config?: randomGeometryLineConfig) => import('..').Line;
18
- line3: (config?: randomGeometryLine3Config) => import('..').Line3;
17
+ line: (config?: randomGeometryLineConfig) => import("..").Line;
18
+ line3: (config?: randomGeometryLine3Config) => import("..").Line3;
19
19
  vector: (config?: randomGeometryPointConfig) => Point;
20
20
  point: (config?: randomGeometryPointConfig) => Point;
21
- circle: (config?: randomGeometryCircleConfig) => import('..').Circle;
21
+ circle: (config?: randomGeometryCircleConfig) => import("..").Circle;
22
22
  };
23
+ //# sourceMappingURL=random.d.ts.map
@@ -1,22 +1,9 @@
1
- /**
2
- * Random boolean with a percent ratio
3
- * @param percent
4
- */
5
1
  export declare function randomBool(percent?: number): boolean;
6
- /**
7
- * Random integer between two values.
8
- * @param a (number) : From this value to the second value. If the second is ommited, this value is the max value.
9
- * @param b (number) : To this value. If this is ommited.
10
- */
11
2
  export declare function randomInt(a: number, b?: number, exclude?: number[]): number;
12
- /**
13
- * Random integer between -max and max value.
14
- * @param max (number) : determine the limits.
15
- * @param zero (bool) : determine if zero is allowed or not.
16
- */
17
3
  export declare function randomIntSym(max: number, zero?: boolean): number;
18
4
  export declare function randomTriplet(target: number, allowZero?: boolean): [number, number, number] | null;
19
5
  export declare function randomPrime(max?: number): number;
20
6
  export declare function randomArray<T>(arr: T[], number?: number): T[];
21
7
  export declare function randomItem<T>(arr: T[]): T;
22
8
  export declare function shuffleArray<T>(arr: T[]): T[];
9
+ //# sourceMappingURL=rndHelpers.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Fraction } from '../coefficients/fraction';
1
+ import { Fraction } from "../coefficients/fraction";
2
2
  export interface randomCoefficientConfig {
3
3
  max?: number;
4
4
  natural?: boolean;
@@ -66,3 +66,4 @@ export interface randomGeometryCircleConfig {
66
66
  pointsOnCircle?: number;
67
67
  radius?: number;
68
68
  }
69
+ //# sourceMappingURL=rndTypes.d.ts.map