pimath 0.0.120 → 0.0.122

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 (175) hide show
  1. package/.idea/PI.iml +7 -1
  2. package/.idea/shelf/Uncommitted_changes_before_Update_at_24_07_2023_15_31_[Default_Changelist]/shelved.patch +90 -0
  3. package/.idea/shelf/Uncommitted_changes_before_Update_at_24_07_2023_15_31_[Default_Changelist]1/shelved.patch +107 -0
  4. package/.idea/shelf/Uncommitted_changes_before_Update_at_24_07_2023_15_31__Default_Changelist_.xml +4 -0
  5. package/.idea/shelf/Uncommitted_changes_before_Update_at_24_07_2023_15_31__Default_Changelist_1.xml +4 -0
  6. package/LICENSE.md +1 -1
  7. package/dev/pimath.js +7929 -0
  8. package/dev/pimath.js.map +1 -0
  9. package/dist/{pi.js → pimath.js} +7613 -7840
  10. package/dist/pimath.js.map +1 -0
  11. package/dist/pimath.min.js +2 -0
  12. package/dist/pimath.min.js.map +1 -0
  13. package/docs/assets/main.js +58 -58
  14. package/docs/assets/search.js +1 -1
  15. package/docs/assets/style.css +1367 -1280
  16. package/docs/classes/Logicalset.Logicalset.html +221 -212
  17. package/docs/classes/Polynom.Rational.html +391 -388
  18. package/docs/classes/Vector-1.Vector.html +494 -448
  19. package/docs/classes/Vector.Point.html +341 -342
  20. package/docs/classes/algebra_equation.Equation.html +796 -753
  21. package/docs/classes/algebra_linearSystem.LinearSystem.html +408 -397
  22. package/docs/classes/algebra_monom.Monom.html +967 -910
  23. package/docs/classes/algebra_polynom.Polynom.html +1281 -1260
  24. package/docs/classes/coefficients_fraction.Fraction.html +939 -931
  25. package/docs/classes/geometry_circle.Circle.html +476 -476
  26. package/docs/classes/geometry_line.Line.html +779 -719
  27. package/docs/classes/geometry_triangle.Triangle.html +429 -420
  28. package/docs/classes/numeric.Numeric.html +269 -263
  29. package/docs/classes/shutingyard.Shutingyard.html +259 -248
  30. package/docs/enums/algebra_equation.PARTICULAR_SOLUTION.html +89 -88
  31. package/docs/enums/geometry_line.LinePropriety.html +102 -102
  32. package/docs/enums/shutingyard.ShutingyardMode.html +106 -102
  33. package/docs/enums/shutingyard.ShutingyardType.html +120 -116
  34. package/docs/index.html +63 -65
  35. package/docs/interfaces/algebra_equation.ISolution.html +111 -109
  36. package/docs/interfaces/algebra_polynom.IEuclidian.html +93 -92
  37. package/docs/interfaces/geometry_triangle.remarquableLines.html +150 -150
  38. package/docs/modules/Logicalset.html +69 -74
  39. package/docs/modules/Polynom.html +69 -74
  40. package/docs/modules/Vector-1.html +69 -74
  41. package/docs/modules/Vector.html +69 -74
  42. package/docs/modules/algebra_equation.html +75 -81
  43. package/docs/modules/algebra_linearSystem.html +65 -71
  44. package/docs/modules/algebra_monom.html +70 -76
  45. package/docs/modules/algebra_polynom.html +75 -81
  46. package/docs/modules/coefficients_fraction.html +70 -76
  47. package/docs/modules/geometry_circle.html +65 -71
  48. package/docs/modules/geometry_line.html +70 -76
  49. package/docs/modules/geometry_triangle.html +70 -76
  50. package/docs/modules/numeric.html +65 -71
  51. package/docs/modules/shutingyard.html +84 -90
  52. package/docs/types/algebra_monom.literalType.html +66 -70
  53. package/docs/types/algebra_polynom.PolynomParsingType.html +62 -66
  54. package/docs/types/coefficients_fraction.FractionParsingType.html +61 -65
  55. package/docs/types/shutingyard.Token.html +72 -76
  56. package/docs/types/shutingyard.tokenType.html +77 -81
  57. package/docs/variables/shutingyard.tokenConstant.html +70 -74
  58. package/esm/index.d.ts +38 -41
  59. package/esm/index.js +43 -46
  60. package/esm/index.js.map +1 -1
  61. package/esm/maths/algebra/equation.d.ts +119 -117
  62. package/esm/maths/algebra/equation.js +796 -785
  63. package/esm/maths/algebra/equation.js.map +1 -1
  64. package/esm/maths/algebra/linearSystem.d.ts +39 -38
  65. package/esm/maths/algebra/linearSystem.js +278 -262
  66. package/esm/maths/algebra/linearSystem.js.map +1 -1
  67. package/esm/maths/algebra/logicalset.d.ts +28 -28
  68. package/esm/maths/algebra/logicalset.js +157 -157
  69. package/esm/maths/algebra/monom.d.ts +206 -206
  70. package/esm/maths/algebra/monom.js +908 -908
  71. package/esm/maths/algebra/monom.js.map +1 -1
  72. package/esm/maths/algebra/polynom.d.ts +157 -157
  73. package/esm/maths/algebra/polynom.js +1277 -1277
  74. package/esm/maths/algebra/rational.d.ts +45 -45
  75. package/esm/maths/algebra/rational.js +183 -183
  76. package/esm/maths/algebra/study/rationalStudy.d.ts +28 -28
  77. package/esm/maths/algebra/study/rationalStudy.js +243 -243
  78. package/esm/maths/algebra/study.d.ts +143 -142
  79. package/esm/maths/algebra/study.js +378 -377
  80. package/esm/maths/algebra/study.js.map +1 -1
  81. package/esm/maths/coefficients/fraction.d.ts +90 -90
  82. package/esm/maths/coefficients/fraction.js +516 -516
  83. package/esm/maths/coefficients/fraction.js.map +1 -1
  84. package/esm/maths/coefficients/nthRoot.d.ts +23 -23
  85. package/esm/maths/coefficients/nthRoot.js +136 -136
  86. package/esm/maths/geometry/circle.d.ts +45 -45
  87. package/esm/maths/geometry/circle.js +323 -323
  88. package/esm/maths/geometry/line.d.ts +99 -99
  89. package/esm/maths/geometry/line.js +481 -481
  90. package/esm/maths/geometry/line.js.map +1 -1
  91. package/esm/maths/geometry/point.d.ts +34 -34
  92. package/esm/maths/geometry/point.js +166 -166
  93. package/esm/maths/geometry/point.js.map +1 -1
  94. package/esm/maths/geometry/triangle.d.ts +85 -85
  95. package/esm/maths/geometry/triangle.js +268 -268
  96. package/esm/maths/geometry/vector.d.ts +41 -41
  97. package/esm/maths/geometry/vector.js +197 -197
  98. package/esm/maths/geometry/vector.js.map +1 -1
  99. package/esm/maths/numeric.d.ts +28 -28
  100. package/esm/maths/numeric.js +180 -180
  101. package/esm/maths/numexp.d.ts +19 -0
  102. package/esm/maths/numexp.js +186 -0
  103. package/esm/maths/numexp.js.map +1 -0
  104. package/esm/maths/randomization/random.d.ts +23 -23
  105. package/esm/maths/randomization/random.js +78 -78
  106. package/esm/maths/randomization/random.js.map +1 -1
  107. package/esm/maths/randomization/randomCore.d.ts +7 -7
  108. package/esm/maths/randomization/randomCore.js +21 -21
  109. package/esm/maths/randomization/rndFraction.d.ts +12 -12
  110. package/esm/maths/randomization/rndFraction.js +43 -43
  111. package/esm/maths/randomization/rndGeometryLine.d.ts +12 -12
  112. package/esm/maths/randomization/rndGeometryLine.js +45 -45
  113. package/esm/maths/randomization/rndGeometryPoint.d.ts +12 -12
  114. package/esm/maths/randomization/rndGeometryPoint.js +60 -60
  115. package/esm/maths/randomization/rndHelpers.d.ts +23 -23
  116. package/esm/maths/randomization/rndHelpers.js +76 -76
  117. package/esm/maths/randomization/rndMonom.d.ts +12 -12
  118. package/esm/maths/randomization/rndMonom.js +52 -52
  119. package/esm/maths/randomization/rndPolynom.d.ts +13 -13
  120. package/esm/maths/randomization/rndPolynom.js +74 -74
  121. package/esm/maths/randomization/rndTypes.d.ts +34 -34
  122. package/esm/maths/randomization/rndTypes.js +2 -2
  123. package/esm/maths/shutingyard.d.ts +59 -59
  124. package/esm/maths/shutingyard.js +442 -442
  125. package/esm/maths/shutingyard.js.map +1 -1
  126. package/package.json +11 -11
  127. package/public/index.html +50 -81
  128. package/public/playground.html +7 -8
  129. package/src/index.ts +1 -4
  130. package/src/maths/algebra/equation.ts +16 -0
  131. package/src/maths/algebra/linearSystem.ts +20 -0
  132. package/src/maths/algebra/study.ts +12 -10
  133. package/src/maths/{expressions/numexp.ts → numexp.ts} +2 -2
  134. package/tests/algebra/equation.test.ts +19 -5
  135. package/tests/algebra/linear.test.ts +3 -11
  136. package/tests/algebra/polynom.test.ts +7 -8
  137. package/tests/algebra/rationnal.test.ts +1 -1
  138. package/tests/algebra/study.test.ts +2 -9
  139. package/tests/coefficients/fraction.test.ts +8 -8
  140. package/tests/custom.test.ts +33 -37
  141. package/tests/numeric.test.ts +1 -2
  142. package/tests/numexp.test.ts +13 -5
  143. package/tests/shutingyard.test.ts +3 -3
  144. package/webpack-production-min.config.js +1 -1
  145. package/webpack-production.config.js +1 -1
  146. package/webpack.config.js +1 -1
  147. package/dist/pi.js.map +0 -1
  148. package/dist/pi.min.js +0 -2
  149. package/dist/pi.min.js.map +0 -1
  150. package/docs/classes/expressions_numexp.NumExp.html +0 -236
  151. package/docs/classes/expressions_polynomexp.PolynomExpFactor.html +0 -317
  152. package/docs/classes/expressions_polynomexp.PolynomExpProduct.html +0 -285
  153. package/docs/modules/expressions_numexp.html +0 -71
  154. package/docs/modules/expressions_polynomexp.html +0 -73
  155. package/docs/modules.html +0 -76
  156. package/graph.svg +0 -1033
  157. package/src/maths/expressions/ExpressionTree.ts +0 -172
  158. package/src/maths/expressions/expression.ts +0 -286
  159. package/src/maths/expressions/expressionFactor.ts +0 -190
  160. package/src/maths/expressions/expressionMember.ts +0 -233
  161. package/src/maths/expressions/expressionOperators.ts +0 -49
  162. package/src/maths/expressions/expressionParser.ts +0 -295
  163. package/src/maths/expressions/factors/ExpFactor.ts +0 -39
  164. package/src/maths/expressions/factors/ExpFactorConstant.ts +0 -60
  165. package/src/maths/expressions/factors/ExpFactorExponential.ts +0 -26
  166. package/src/maths/expressions/factors/ExpFactorNumber.ts +0 -72
  167. package/src/maths/expressions/factors/ExpFactorPower.ts +0 -42
  168. package/src/maths/expressions/factors/ExpFactorTrigo.ts +0 -53
  169. package/src/maths/expressions/factors/ExpFactorVariable.ts +0 -45
  170. package/src/maths/expressions/internals.ts +0 -14
  171. package/src/maths/expressions/polynomexp.bkp.ts +0 -221
  172. package/src/maths/expressions/polynomexp.ts +0 -310
  173. package/tests/expressions/expressions.test.ts +0 -145
  174. package/tests/expressions/expressiontree.test.ts +0 -11
  175. package/tests/polynomexp.test.ts +0 -12
@@ -1,142 +1,143 @@
1
- /**
2
- * Rational polynom module contains everything necessary to handle rational polynoms.
3
- * @module Polynom
4
- */
5
- import { Rational } from "./rational";
6
- import { ISolution } from "./equation";
7
- import { Polynom } from "./polynom";
8
- export type StudyableFunction = Rational;
9
- export declare enum ZEROTYPE {
10
- ZERO = "z",
11
- DEFENCE = "d",
12
- NOTHING = "t"
13
- }
14
- export interface IZero extends ISolution {
15
- extrema: FUNCTION_EXTREMA;
16
- type: ZEROTYPE;
17
- }
18
- export declare enum ASYMPTOTE {
19
- VERTICAL = "av",
20
- HORIZONTAL = "ah",
21
- SLOPE = "ao",
22
- HOLE = "hole"
23
- }
24
- export declare enum ASYMPTOTE_POSITION {
25
- "LT" = "LT",
26
- "RT" = "RT",
27
- "LB" = "LB",
28
- "RB" = "RB"
29
- }
30
- export interface IAsymptote {
31
- deltaX: StudyableFunction;
32
- display: string;
33
- fx: Polynom;
34
- limits: string;
35
- position: ASYMPTOTE_POSITION[];
36
- tableOfSign: ITableOfSigns;
37
- tex: string;
38
- type: ASYMPTOTE;
39
- zero: IZero;
40
- }
41
- export declare enum FUNCTION_EXTREMA {
42
- MIN = "min",
43
- MAX = "max",
44
- FLAT = "flat",
45
- NOTHING = ""
46
- }
47
- export interface IExtrema {
48
- tex: {
49
- x: string;
50
- y: string;
51
- };
52
- type: FUNCTION_EXTREMA;
53
- value: {
54
- x: number;
55
- y: number;
56
- };
57
- }
58
- export interface ITableOfSigns {
59
- extremes: {
60
- [Key: string]: IExtrema;
61
- };
62
- factors: Polynom[];
63
- fx: StudyableFunction;
64
- signs: (string[])[];
65
- tex: string;
66
- type: TABLE_OF_SIGNS;
67
- zeroes: IZero[];
68
- }
69
- export declare enum TABLE_OF_SIGNS {
70
- SIGNS = "signs",
71
- GROWS = "grows",
72
- VARIATIONS = "variatins"
73
- }
74
- export interface StudyConfig {
75
- asymptotes?: boolean;
76
- derivative?: boolean;
77
- domain?: boolean;
78
- name?: string;
79
- signs?: boolean;
80
- variations?: boolean;
81
- }
82
- /**
83
- * The study class is a "function study" class that will get:
84
- * fx : get the function
85
- * domain : string
86
- * zeroes : Object (tex, IZero)
87
- * signs : table of signs + tex output using tkz-tab
88
- * av : vertical asymptotic
89
- * ah : horizontal asymptotic
90
- * ao : obliques
91
- * deltaX : position relative
92
- * dx : derivative
93
- * grows : growing table + tex output using tkz-tab
94
- * ddx : dérivée seconde
95
- * variations : variation table + tex output using tkz-tab
96
- */
97
- export declare class Study {
98
- fx: StudyableFunction;
99
- private _asymptotes;
100
- private _derivative;
101
- private _signs;
102
- private _variations;
103
- private _zeroes;
104
- private _config;
105
- private _name;
106
- constructor(fx: StudyableFunction, config?: StudyConfig | string);
107
- get name(): string;
108
- set name(value: string);
109
- get config(): StudyConfig;
110
- set config(value: StudyConfig);
111
- get zeroes(): IZero[];
112
- get domain(): string;
113
- get signs(): ITableOfSigns;
114
- get asymptotes(): IAsymptote[];
115
- get derivative(): ITableOfSigns;
116
- get texSigns(): string;
117
- get texGrows(): string;
118
- get texVariations(): string;
119
- makeStudy: () => void;
120
- indexOfZero: (zeroes: IZero[], zero: IZero | ISolution) => number;
121
- makeOneLineForSigns: (factor: Polynom, zeroes: IZero[], zeroSign: ZEROTYPE) => string[];
122
- makeSignsResult: (signs: (string[])[]) => string[];
123
- makeGrowsResult: (tos: ITableOfSigns) => {
124
- growsLine: string[];
125
- extremes: {
126
- [Key: string]: IExtrema;
127
- };
128
- };
129
- makeVariationsResult: (tos: ITableOfSigns) => {
130
- varsLine: string[];
131
- extremes: {
132
- [Key: string]: IExtrema;
133
- };
134
- };
135
- makeZeroes(): IZero[];
136
- makeSigns(): ITableOfSigns;
137
- makeAsymptotes(): IAsymptote[];
138
- makeDerivative(): ITableOfSigns;
139
- makeVariation(): ITableOfSigns;
140
- drawCode: () => string;
141
- private _makeTexFromTableOfSigns;
142
- }
1
+ /**
2
+ * Rational polynom module contains everything necessary to handle rational polynoms.
3
+ * @module Polynom
4
+ */
5
+ import { Rational } from "./rational";
6
+ import { ISolution } from "./equation";
7
+ import { Polynom } from "./polynom";
8
+ export type StudyableFunction = Rational;
9
+ export declare enum ZEROTYPE {
10
+ ZERO = "z",
11
+ DEFENCE = "d",
12
+ NOTHING = "t"
13
+ }
14
+ export interface IZero extends ISolution {
15
+ extrema: FUNCTION_EXTREMA;
16
+ type: ZEROTYPE;
17
+ }
18
+ export declare enum ASYMPTOTE {
19
+ VERTICAL = "av",
20
+ HORIZONTAL = "ah",
21
+ SLOPE = "ao",
22
+ HOLE = "hole"
23
+ }
24
+ export declare enum ASYMPTOTE_POSITION {
25
+ "LT" = "LT",
26
+ "RT" = "RT",
27
+ "LB" = "LB",
28
+ "RB" = "RB"
29
+ }
30
+ export interface IAsymptote {
31
+ deltaX: StudyableFunction;
32
+ display: string;
33
+ fx: Polynom;
34
+ limits: string;
35
+ position: ASYMPTOTE_POSITION[];
36
+ tableOfSign: ITableOfSigns;
37
+ tex: string;
38
+ type: ASYMPTOTE;
39
+ zero: IZero;
40
+ }
41
+ export declare enum FUNCTION_EXTREMA {
42
+ MIN = "min",
43
+ MAX = "max",
44
+ FLAT = "flat",
45
+ NOTHING = ""
46
+ }
47
+ export interface IExtrema {
48
+ tex: {
49
+ x: string;
50
+ y: string;
51
+ };
52
+ type: FUNCTION_EXTREMA;
53
+ value: {
54
+ x: number;
55
+ y: number;
56
+ };
57
+ }
58
+ export interface ITableOfSigns {
59
+ extremes: {
60
+ [Key: string]: IExtrema;
61
+ };
62
+ factors: Polynom[];
63
+ fx: StudyableFunction;
64
+ signs: (string[])[];
65
+ tex: string;
66
+ type: TABLE_OF_SIGNS;
67
+ zeroes: IZero[];
68
+ }
69
+ export declare enum TABLE_OF_SIGNS {
70
+ SIGNS = "signs",
71
+ GROWS = "grows",
72
+ VARIATIONS = "variatins"
73
+ }
74
+ export interface StudyConfig {
75
+ asymptotes?: boolean;
76
+ derivative?: boolean;
77
+ domain?: boolean;
78
+ name?: string;
79
+ variable?: string;
80
+ signs?: boolean;
81
+ variations?: boolean;
82
+ }
83
+ /**
84
+ * The study class is a "function study" class that will get:
85
+ * fx : get the function
86
+ * domain : string
87
+ * zeroes : Object (tex, IZero)
88
+ * signs : table of signs + tex output using tkz-tab
89
+ * av : vertical asymptotic
90
+ * ah : horizontal asymptotic
91
+ * ao : obliques
92
+ * deltaX : position relative
93
+ * dx : derivative
94
+ * grows : growing table + tex output using tkz-tab
95
+ * ddx : dérivée seconde
96
+ * variations : variation table + tex output using tkz-tab
97
+ */
98
+ export declare class Study {
99
+ fx: StudyableFunction;
100
+ private _asymptotes;
101
+ private _derivative;
102
+ private _signs;
103
+ private _variations;
104
+ private _zeroes;
105
+ private _config;
106
+ private _name;
107
+ constructor(fx: StudyableFunction, config?: StudyConfig | string);
108
+ get name(): string;
109
+ set name(value: string);
110
+ get config(): StudyConfig;
111
+ set config(value: StudyConfig);
112
+ get zeroes(): IZero[];
113
+ get domain(): string;
114
+ get signs(): ITableOfSigns;
115
+ get asymptotes(): IAsymptote[];
116
+ get derivative(): ITableOfSigns;
117
+ get texSigns(): string;
118
+ get texGrows(): string;
119
+ get texVariations(): string;
120
+ makeStudy: () => void;
121
+ indexOfZero: (zeroes: IZero[], zero: IZero | ISolution) => number;
122
+ makeOneLineForSigns: (factor: Polynom, zeroes: IZero[], zeroSign: ZEROTYPE) => string[];
123
+ makeSignsResult: (signs: (string[])[]) => string[];
124
+ makeGrowsResult: (tos: ITableOfSigns) => {
125
+ growsLine: string[];
126
+ extremes: {
127
+ [Key: string]: IExtrema;
128
+ };
129
+ };
130
+ makeVariationsResult: (tos: ITableOfSigns) => {
131
+ varsLine: string[];
132
+ extremes: {
133
+ [Key: string]: IExtrema;
134
+ };
135
+ };
136
+ makeZeroes(): IZero[];
137
+ makeSigns(): ITableOfSigns;
138
+ makeAsymptotes(): IAsymptote[];
139
+ makeDerivative(): ITableOfSigns;
140
+ makeVariation(): ITableOfSigns;
141
+ drawCode: () => string;
142
+ private _makeTexFromTableOfSigns;
143
+ }