pimath 0.0.119 → 0.0.121
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/.eslintrc.js +23 -23
- package/.idea/PI.iml +7 -1
- package/dev/pimath.js +7929 -0
- package/dev/pimath.js.map +1 -0
- package/dist/{pi.js → pimath.js} +7612 -7829
- package/dist/pimath.js.map +1 -0
- package/dist/pimath.min.js +2 -0
- package/dist/pimath.min.js.map +1 -0
- package/docs/assets/main.js +3 -3
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +450 -363
- package/docs/classes/Logicalset.Logicalset.html +119 -110
- package/docs/classes/Polynom.Rational.html +230 -227
- package/docs/classes/Vector-1.Vector.html +319 -273
- package/docs/classes/Vector.Point.html +189 -190
- package/docs/classes/algebra_equation.Equation.html +489 -446
- package/docs/classes/algebra_linearSystem.LinearSystem.html +228 -217
- package/docs/classes/algebra_monom.Monom.html +564 -507
- package/docs/classes/algebra_polynom.Polynom.html +774 -753
- package/docs/classes/coefficients_fraction.Fraction.html +573 -565
- package/docs/classes/geometry_circle.Circle.html +299 -299
- package/docs/classes/geometry_line.Line.html +511 -451
- package/docs/classes/geometry_triangle.Triangle.html +273 -264
- package/docs/classes/numeric.Numeric.html +138 -132
- package/docs/classes/shutingyard.Shutingyard.html +144 -133
- package/docs/enums/algebra_equation.PARTICULAR_SOLUTION.html +47 -46
- package/docs/enums/geometry_line.LinePropriety.html +58 -58
- package/docs/enums/shutingyard.ShutingyardMode.html +62 -58
- package/docs/enums/shutingyard.ShutingyardType.html +74 -70
- package/docs/index.html +31 -33
- package/docs/interfaces/algebra_equation.ISolution.html +61 -59
- package/docs/interfaces/algebra_polynom.IEuclidian.html +47 -46
- package/docs/interfaces/geometry_triangle.remarquableLines.html +74 -74
- package/docs/modules/Logicalset.html +33 -38
- package/docs/modules/Polynom.html +33 -38
- package/docs/modules/Vector-1.html +33 -38
- package/docs/modules/Vector.html +33 -38
- package/docs/modules/algebra_equation.html +35 -41
- package/docs/modules/algebra_linearSystem.html +31 -37
- package/docs/modules/algebra_monom.html +33 -39
- package/docs/modules/algebra_polynom.html +35 -41
- package/docs/modules/coefficients_fraction.html +33 -39
- package/docs/modules/geometry_circle.html +31 -37
- package/docs/modules/geometry_line.html +33 -39
- package/docs/modules/geometry_triangle.html +33 -39
- package/docs/modules/numeric.html +31 -37
- package/docs/modules/shutingyard.html +41 -47
- package/docs/types/algebra_monom.literalType.html +33 -37
- package/docs/types/algebra_polynom.PolynomParsingType.html +33 -37
- package/docs/types/coefficients_fraction.FractionParsingType.html +32 -36
- package/docs/types/shutingyard.Token.html +38 -42
- package/docs/types/shutingyard.tokenType.html +40 -44
- package/docs/variables/shutingyard.tokenConstant.html +37 -41
- package/esm/index.d.ts +38 -41
- package/esm/index.js +43 -46
- package/esm/index.js.map +1 -1
- package/esm/maths/algebra/equation.d.ts +119 -117
- package/esm/maths/algebra/equation.js +796 -785
- package/esm/maths/algebra/equation.js.map +1 -1
- package/esm/maths/algebra/linearSystem.d.ts +39 -38
- package/esm/maths/algebra/linearSystem.js +278 -262
- package/esm/maths/algebra/linearSystem.js.map +1 -1
- package/esm/maths/algebra/logicalset.d.ts +28 -28
- package/esm/maths/algebra/logicalset.js +157 -157
- package/esm/maths/algebra/monom.d.ts +206 -206
- package/esm/maths/algebra/monom.js +908 -908
- package/esm/maths/algebra/monom.js.map +1 -1
- package/esm/maths/algebra/polynom.d.ts +157 -157
- package/esm/maths/algebra/polynom.js +1277 -1277
- package/esm/maths/algebra/rational.d.ts +45 -45
- package/esm/maths/algebra/rational.js +183 -183
- package/esm/maths/algebra/study/rationalStudy.d.ts +28 -28
- package/esm/maths/algebra/study/rationalStudy.js +243 -243
- package/esm/maths/algebra/study.d.ts +142 -142
- package/esm/maths/algebra/study.js +377 -377
- package/esm/maths/algebra/study.js.map +1 -1
- package/esm/maths/coefficients/fraction.d.ts +90 -90
- package/esm/maths/coefficients/fraction.js +516 -516
- package/esm/maths/coefficients/fraction.js.map +1 -1
- package/esm/maths/coefficients/nthRoot.d.ts +23 -23
- package/esm/maths/coefficients/nthRoot.js +136 -136
- package/esm/maths/geometry/circle.d.ts +45 -45
- package/esm/maths/geometry/circle.js +323 -323
- package/esm/maths/geometry/line.d.ts +99 -99
- package/esm/maths/geometry/line.js +481 -481
- package/esm/maths/geometry/line.js.map +1 -1
- package/esm/maths/geometry/point.d.ts +34 -34
- package/esm/maths/geometry/point.js +166 -166
- package/esm/maths/geometry/point.js.map +1 -1
- package/esm/maths/geometry/triangle.d.ts +85 -85
- package/esm/maths/geometry/triangle.js +268 -268
- package/esm/maths/geometry/vector.d.ts +41 -41
- package/esm/maths/geometry/vector.js +197 -197
- package/esm/maths/geometry/vector.js.map +1 -1
- package/esm/maths/numeric.d.ts +28 -28
- package/esm/maths/numeric.js +180 -169
- package/esm/maths/numeric.js.map +1 -1
- package/esm/maths/numexp.d.ts +19 -0
- package/esm/maths/numexp.js +186 -0
- package/esm/maths/numexp.js.map +1 -0
- package/esm/maths/randomization/random.d.ts +23 -23
- package/esm/maths/randomization/random.js +78 -78
- package/esm/maths/randomization/random.js.map +1 -1
- package/esm/maths/randomization/randomCore.d.ts +7 -7
- package/esm/maths/randomization/randomCore.js +21 -21
- package/esm/maths/randomization/rndFraction.d.ts +12 -12
- package/esm/maths/randomization/rndFraction.js +43 -43
- package/esm/maths/randomization/rndGeometryLine.d.ts +12 -12
- package/esm/maths/randomization/rndGeometryLine.js +45 -45
- package/esm/maths/randomization/rndGeometryPoint.d.ts +12 -12
- package/esm/maths/randomization/rndGeometryPoint.js +60 -60
- package/esm/maths/randomization/rndHelpers.d.ts +23 -23
- package/esm/maths/randomization/rndHelpers.js +76 -76
- package/esm/maths/randomization/rndMonom.d.ts +12 -12
- package/esm/maths/randomization/rndMonom.js +52 -52
- package/esm/maths/randomization/rndPolynom.d.ts +13 -13
- package/esm/maths/randomization/rndPolynom.js +74 -74
- package/esm/maths/randomization/rndTypes.d.ts +34 -34
- package/esm/maths/randomization/rndTypes.js +2 -2
- package/esm/maths/shutingyard.d.ts +59 -59
- package/esm/maths/shutingyard.js +442 -442
- package/esm/maths/shutingyard.js.map +1 -1
- package/package.json +11 -11
- package/public/index.html +50 -81
- package/public/playground.html +7 -8
- package/src/index.ts +2 -5
- package/src/maths/algebra/equation.ts +16 -0
- package/src/maths/algebra/linearSystem.ts +20 -0
- package/src/maths/algebra/study.ts +1 -1
- package/src/maths/numeric.ts +49 -48
- package/src/maths/{expressions/numexp.ts → numexp.ts} +2 -2
- package/tests/algebra/equation.test.ts +19 -5
- package/tests/algebra/linear.test.ts +3 -11
- package/tests/algebra/polynom.test.ts +7 -8
- package/tests/algebra/rationnal.test.ts +1 -1
- package/tests/algebra/study.test.ts +2 -9
- package/tests/coefficients/fraction.test.ts +8 -8
- package/tests/custom.test.ts +33 -37
- package/tests/numeric.test.ts +1 -2
- package/tests/numexp.test.ts +1 -5
- package/tests/shutingyard.test.ts +3 -3
- package/webpack-production-min.config.js +1 -1
- package/webpack-production.config.js +1 -1
- package/webpack.config.js +1 -1
- package/dist/pi.js.map +0 -1
- package/dist/pi.min.js +0 -2
- package/dist/pi.min.js.map +0 -1
- package/docs/classes/expressions_numexp.NumExp.html +0 -236
- package/docs/classes/expressions_polynomexp.PolynomExpFactor.html +0 -317
- package/docs/classes/expressions_polynomexp.PolynomExpProduct.html +0 -285
- package/docs/modules/expressions_numexp.html +0 -71
- package/docs/modules/expressions_polynomexp.html +0 -73
- package/docs/modules.html +0 -76
- package/graph.svg +0 -1033
- package/src/maths/expressions/ExpressionTree.ts +0 -172
- package/src/maths/expressions/expression.ts +0 -286
- package/src/maths/expressions/expressionFactor.ts +0 -190
- package/src/maths/expressions/expressionMember.ts +0 -233
- package/src/maths/expressions/expressionOperators.ts +0 -49
- package/src/maths/expressions/expressionParser.ts +0 -295
- package/src/maths/expressions/factors/ExpFactor.ts +0 -39
- package/src/maths/expressions/factors/ExpFactorConstant.ts +0 -60
- package/src/maths/expressions/factors/ExpFactorExponential.ts +0 -26
- package/src/maths/expressions/factors/ExpFactorNumber.ts +0 -72
- package/src/maths/expressions/factors/ExpFactorPower.ts +0 -42
- package/src/maths/expressions/factors/ExpFactorTrigo.ts +0 -53
- package/src/maths/expressions/factors/ExpFactorVariable.ts +0 -45
- package/src/maths/expressions/internals.ts +0 -14
- package/src/maths/expressions/polynomexp.bkp.ts +0 -221
- package/src/maths/expressions/polynomexp.ts +0 -310
- package/tests/expressions/expressions.test.ts +0 -145
- package/tests/expressions/expressiontree.test.ts +0 -11
- package/tests/polynomexp.test.ts +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Shutingyard | pimath</title><meta name="description" content="Documentation for pimath"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.css" integrity="sha384-R4558gYOUz8mP9YWpZJjofhk+zx0AS11p36HnD2ZKj/6JR5z27gSSULCNHIRReVs" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.js" integrity="sha384-z1fJDqw8ZApjGO3/unPWUPsIymfsJmyrDVWC8Tv/a1HeOtGmkwNd/7xUS0Xcnvsx" crossorigin="anonymous"></script><script defer 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);"></script></link>}); }</head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Shutingyard | pimath</title><meta name="description" content="Documentation for pimath"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.css" integrity="sha384-R4558gYOUz8mP9YWpZJjofhk+zx0AS11p36HnD2ZKj/6JR5z27gSSULCNHIRReVs" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.js" integrity="sha384-z1fJDqw8ZApjGO3/unPWUPsIymfsJmyrDVWC8Tv/a1HeOtGmkwNd/7xUS0Xcnvsx" crossorigin="anonymous"></script><script defer 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);"></script></link>}); }</head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">pimath</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
|
-
<div class="col-
|
|
12
|
+
<div class="col-content">
|
|
13
13
|
<div class="tsd-page-title">
|
|
14
14
|
<ul class="tsd-breadcrumb">
|
|
15
|
-
<li><a href="../
|
|
15
|
+
<li><a href="../index.html">pimath</a></li>
|
|
16
16
|
<li><a href="../modules/shutingyard.html">shutingyard</a></li>
|
|
17
17
|
<li><a href="shutingyard.Shutingyard.html">Shutingyard</a></li></ul>
|
|
18
18
|
<h1>Class Shutingyard</h1></div>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<ul class="tsd-hierarchy">
|
|
22
22
|
<li><span class="target">Shutingyard</span></li></ul></section><aside class="tsd-sources">
|
|
23
23
|
<ul>
|
|
24
|
-
<li>Defined in <a href="https://github.com/basilgass/
|
|
24
|
+
<li>Defined in <a href="https://github.com/basilgass/PiMath/blob/e13554f/src/maths/shutingyard.ts#L32">shutingyard.ts:32</a></li></ul></aside>
|
|
25
25
|
<section class="tsd-panel-group tsd-index-group">
|
|
26
26
|
<section class="tsd-panel tsd-index-panel">
|
|
27
27
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -29,105 +29,105 @@
|
|
|
29
29
|
<div class="tsd-accordion-details">
|
|
30
30
|
<section class="tsd-index-section">
|
|
31
31
|
<h3 class="tsd-index-heading">Constructors</h3>
|
|
32
|
-
<div class="tsd-index-list"><a href="shutingyard.Shutingyard.html#constructor" class="tsd-index-link
|
|
32
|
+
<div class="tsd-index-list"><a href="shutingyard.Shutingyard.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-512"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g></svg><span>constructor</span></a>
|
|
33
33
|
</div></section>
|
|
34
34
|
<section class="tsd-index-section">
|
|
35
35
|
<h3 class="tsd-index-heading">Properties</h3>
|
|
36
|
-
<div class="tsd-index-list"><a href="shutingyard.Shutingyard.html#_mode" class="tsd-index-link
|
|
37
|
-
<a href="shutingyard.Shutingyard.html#_rpn" class="tsd-index-link tsd-
|
|
38
|
-
<a href="shutingyard.Shutingyard.html#_tokenConfig" class="tsd-index-link tsd-
|
|
39
|
-
<a href="shutingyard.Shutingyard.html#_tokenConstant" class="tsd-index-link tsd-
|
|
40
|
-
<a href="shutingyard.Shutingyard.html#_tokenKeys" class="tsd-index-link tsd-
|
|
41
|
-
<a href="shutingyard.Shutingyard.html#_uniformize" class="tsd-index-link tsd-
|
|
36
|
+
<div class="tsd-index-list"><a href="shutingyard.Shutingyard.html#_mode" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-1024"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g></svg><span>_mode</span></a>
|
|
37
|
+
<a href="shutingyard.Shutingyard.html#_rpn" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_rpn</span></a>
|
|
38
|
+
<a href="shutingyard.Shutingyard.html#_tokenConfig" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_token<wbr/>Config</span></a>
|
|
39
|
+
<a href="shutingyard.Shutingyard.html#_tokenConstant" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_token<wbr/>Constant</span></a>
|
|
40
|
+
<a href="shutingyard.Shutingyard.html#_tokenKeys" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_token<wbr/>Keys</span></a>
|
|
41
|
+
<a href="shutingyard.Shutingyard.html#_uniformize" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_uniformize</span></a>
|
|
42
42
|
</div></section>
|
|
43
43
|
<section class="tsd-index-section">
|
|
44
44
|
<h3 class="tsd-index-heading">Accessors</h3>
|
|
45
|
-
<div class="tsd-index-list"><a href="shutingyard.Shutingyard.html#rpn" class="tsd-index-link
|
|
46
|
-
<a href="shutingyard.Shutingyard.html#rpnToken" class="tsd-index-link
|
|
45
|
+
<div class="tsd-index-list"><a href="shutingyard.Shutingyard.html#rpn" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-262144"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g></svg><span>rpn</span></a>
|
|
46
|
+
<a href="shutingyard.Shutingyard.html#rpnToken" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>rpn<wbr/>Token</span></a>
|
|
47
47
|
</div></section>
|
|
48
48
|
<section class="tsd-index-section">
|
|
49
49
|
<h3 class="tsd-index-heading">Methods</h3>
|
|
50
|
-
<div class="tsd-index-list"><a href="shutingyard.Shutingyard.html#NextToken" class="tsd-index-link
|
|
51
|
-
<a href="shutingyard.Shutingyard.html#normalize" class="tsd-index-link
|
|
52
|
-
<a href="shutingyard.Shutingyard.html#parse" class="tsd-index-link
|
|
53
|
-
<a href="shutingyard.Shutingyard.html#tokenConfigInitialization" class="tsd-index-link
|
|
50
|
+
<div class="tsd-index-list"><a href="shutingyard.Shutingyard.html#NextToken" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-2048"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g></svg><span>Next<wbr/>Token</span></a>
|
|
51
|
+
<a href="shutingyard.Shutingyard.html#normalize" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>normalize</span></a>
|
|
52
|
+
<a href="shutingyard.Shutingyard.html#parse" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>parse</span></a>
|
|
53
|
+
<a href="shutingyard.Shutingyard.html#tokenConfigInitialization" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>token<wbr/>Config<wbr/>Initialization</span></a>
|
|
54
54
|
</div></section></div></details></section></section>
|
|
55
55
|
<section class="tsd-panel-group tsd-member-group">
|
|
56
56
|
<h2>Constructors</h2>
|
|
57
|
-
<section class="tsd-panel tsd-member
|
|
58
|
-
<h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg
|
|
59
|
-
<ul class="tsd-signatures
|
|
60
|
-
<li class="tsd-signature tsd-anchor-link" id="constructor.new_Shutingyard">new <wbr/>Shutingyard
|
|
57
|
+
<section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a>
|
|
58
|
+
<h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" id="icon-anchor"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></h3>
|
|
59
|
+
<ul class="tsd-signatures">
|
|
60
|
+
<li class="tsd-signature tsd-anchor-link" id="constructor.new_Shutingyard"><span class="tsd-kind-constructor-signature">new <wbr/>Shutingyard</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">mode</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="shutingyard.Shutingyard.html" class="tsd-signature-type tsd-kind-class">Shutingyard</a><a href="#constructor.new_Shutingyard" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
|
61
61
|
<li class="tsd-description">
|
|
62
62
|
<div class="tsd-parameters">
|
|
63
63
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
64
64
|
<ul class="tsd-parameter-list">
|
|
65
65
|
<li>
|
|
66
|
-
<h5><code class="tsd-tag ts-flagOptional">Optional</code> mode
|
|
67
|
-
<h4 class="tsd-returns-title">Returns <a href="shutingyard.Shutingyard.html" class="tsd-signature-type
|
|
66
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">mode</span>: <a href="../enums/shutingyard.ShutingyardMode.html" class="tsd-signature-type tsd-kind-enum">ShutingyardMode</a></h5></li></ul></div>
|
|
67
|
+
<h4 class="tsd-returns-title">Returns <a href="shutingyard.Shutingyard.html" class="tsd-signature-type tsd-kind-class">Shutingyard</a></h4><aside class="tsd-sources">
|
|
68
68
|
<ul>
|
|
69
|
-
<li>Defined in <a href="https://github.com/basilgass/
|
|
69
|
+
<li>Defined in <a href="https://github.com/basilgass/PiMath/blob/e13554f/src/maths/shutingyard.ts#L40">shutingyard.ts:40</a></li></ul></aside></li></ul></section></section>
|
|
70
70
|
<section class="tsd-panel-group tsd-member-group">
|
|
71
71
|
<h2>Properties</h2>
|
|
72
|
-
<section class="tsd-panel tsd-member
|
|
73
|
-
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagReadonly">Readonly</code> <span>_mode</span><a href="#_mode" aria-label="Permalink" class="tsd-anchor-icon"><svg
|
|
74
|
-
<div class="tsd-signature">_mode
|
|
72
|
+
<section class="tsd-panel tsd-member"><a id="_mode" class="tsd-anchor"></a>
|
|
73
|
+
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagReadonly">Readonly</code> <span>_mode</span><a href="#_mode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
74
|
+
<div class="tsd-signature"><span class="tsd-kind-property">_mode</span><span class="tsd-signature-symbol">:</span> <a href="../enums/shutingyard.ShutingyardMode.html" class="tsd-signature-type tsd-kind-enum">ShutingyardMode</a></div><aside class="tsd-sources">
|
|
75
75
|
<ul>
|
|
76
|
-
<li>Defined in <a href="https://github.com/basilgass/
|
|
77
|
-
<section class="tsd-panel tsd-member tsd-
|
|
78
|
-
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_rpn</span><a href="#_rpn" aria-label="Permalink" class="tsd-anchor-icon"><svg
|
|
79
|
-
<div class="tsd-signature">_rpn
|
|
76
|
+
<li>Defined in <a href="https://github.com/basilgass/PiMath/blob/e13554f/src/maths/shutingyard.ts#L33">shutingyard.ts:33</a></li></ul></aside></section>
|
|
77
|
+
<section class="tsd-panel tsd-member tsd-is-private"><a id="_rpn" class="tsd-anchor"></a>
|
|
78
|
+
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_rpn</span><a href="#_rpn" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
79
|
+
<div class="tsd-signature"><span class="tsd-kind-property">_rpn</span><span class="tsd-signature-symbol">:</span> <a href="../types/shutingyard.Token.html" class="tsd-signature-type tsd-kind-type-alias">Token</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div><aside class="tsd-sources">
|
|
80
80
|
<ul>
|
|
81
|
-
<li>Defined in <a href="https://github.com/basilgass/
|
|
82
|
-
<section class="tsd-panel tsd-member tsd-
|
|
83
|
-
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_token<wbr/>Config</span><a href="#_tokenConfig" aria-label="Permalink" class="tsd-anchor-icon"><svg
|
|
84
|
-
<div class="tsd-signature">_token<wbr/>Config
|
|
81
|
+
<li>Defined in <a href="https://github.com/basilgass/PiMath/blob/e13554f/src/maths/shutingyard.ts#L34">shutingyard.ts:34</a></li></ul></aside></section>
|
|
82
|
+
<section class="tsd-panel tsd-member tsd-is-private"><a id="_tokenConfig" class="tsd-anchor"></a>
|
|
83
|
+
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_token<wbr/>Config</span><a href="#_tokenConfig" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
84
|
+
<div class="tsd-signature"><span class="tsd-kind-property">_token<wbr/>Config</span><span class="tsd-signature-symbol">:</span> <a href="../types/shutingyard.tokenType.html" class="tsd-signature-type tsd-kind-type-alias">tokenType</a></div><aside class="tsd-sources">
|
|
85
85
|
<ul>
|
|
86
|
-
<li>Defined in <a href="https://github.com/basilgass/
|
|
87
|
-
<section class="tsd-panel tsd-member tsd-
|
|
88
|
-
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_token<wbr/>Constant</span><a href="#_tokenConstant" aria-label="Permalink" class="tsd-anchor-icon"><svg
|
|
89
|
-
<div class="tsd-signature">_token<wbr/>Constant
|
|
86
|
+
<li>Defined in <a href="https://github.com/basilgass/PiMath/blob/e13554f/src/maths/shutingyard.ts#L35">shutingyard.ts:35</a></li></ul></aside></section>
|
|
87
|
+
<section class="tsd-panel tsd-member tsd-is-private"><a id="_tokenConstant" class="tsd-anchor"></a>
|
|
88
|
+
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_token<wbr/>Constant</span><a href="#_tokenConstant" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
89
|
+
<div class="tsd-signature"><span class="tsd-kind-property">_token<wbr/>Constant</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span> </span>[<span class="tsd-kind-index-signature">Key</span>: <span class="tsd-signature-type">string</span>]<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></div>
|
|
90
90
|
<div class="tsd-type-declaration">
|
|
91
91
|
<h4>Type declaration</h4>
|
|
92
92
|
<ul class="tsd-parameters">
|
|
93
93
|
<li class="tsd-parameter-index-signature">
|
|
94
|
-
<h5><span class="tsd-signature-symbol">[</span>Key
|
|
94
|
+
<h5><span class="tsd-signature-symbol">[</span><span class="tsd-kind-parameter">Key</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
|
|
95
95
|
<ul>
|
|
96
|
-
<li>Defined in <a href="https://github.com/basilgass/
|
|
97
|
-
<section class="tsd-panel tsd-member tsd-
|
|
98
|
-
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_token<wbr/>Keys</span><a href="#_tokenKeys" aria-label="Permalink" class="tsd-anchor-icon"><svg
|
|
99
|
-
<div class="tsd-signature">_token<wbr/>Keys
|
|
96
|
+
<li>Defined in <a href="https://github.com/basilgass/PiMath/blob/e13554f/src/maths/shutingyard.ts#L36">shutingyard.ts:36</a></li></ul></aside></section>
|
|
97
|
+
<section class="tsd-panel tsd-member tsd-is-private"><a id="_tokenKeys" class="tsd-anchor"></a>
|
|
98
|
+
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_token<wbr/>Keys</span><a href="#_tokenKeys" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
99
|
+
<div class="tsd-signature"><span class="tsd-kind-property">_token<wbr/>Keys</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources">
|
|
100
100
|
<ul>
|
|
101
|
-
<li>Defined in <a href="https://github.com/basilgass/
|
|
102
|
-
<section class="tsd-panel tsd-member tsd-
|
|
103
|
-
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_uniformize</span><a href="#_uniformize" aria-label="Permalink" class="tsd-anchor-icon"><svg
|
|
104
|
-
<div class="tsd-signature">_uniformize
|
|
101
|
+
<li>Defined in <a href="https://github.com/basilgass/PiMath/blob/e13554f/src/maths/shutingyard.ts#L37">shutingyard.ts:37</a></li></ul></aside></section>
|
|
102
|
+
<section class="tsd-panel tsd-member tsd-is-private"><a id="_uniformize" class="tsd-anchor"></a>
|
|
103
|
+
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_uniformize</span><a href="#_uniformize" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
104
|
+
<div class="tsd-signature"><span class="tsd-kind-property">_uniformize</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources">
|
|
105
105
|
<ul>
|
|
106
|
-
<li>Defined in <a href="https://github.com/basilgass/
|
|
106
|
+
<li>Defined in <a href="https://github.com/basilgass/PiMath/blob/e13554f/src/maths/shutingyard.ts#L38">shutingyard.ts:38</a></li></ul></aside></section></section>
|
|
107
107
|
<section class="tsd-panel-group tsd-member-group">
|
|
108
108
|
<h2>Accessors</h2>
|
|
109
|
-
<section class="tsd-panel tsd-member
|
|
110
|
-
<h3 class="tsd-anchor-link"><span>rpn</span><a href="#rpn" aria-label="Permalink" class="tsd-anchor-icon"><svg
|
|
111
|
-
<ul class="tsd-signatures
|
|
112
|
-
<li class="tsd-signature" id="rpn.rpn-1"><span class="tsd-signature-symbol">get</span> rpn<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/shutingyard.Token.html" class="tsd-signature-type
|
|
109
|
+
<section class="tsd-panel tsd-member"><a id="rpn" class="tsd-anchor"></a>
|
|
110
|
+
<h3 class="tsd-anchor-link"><span>rpn</span><a href="#rpn" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
111
|
+
<ul class="tsd-signatures">
|
|
112
|
+
<li class="tsd-signature" id="rpn.rpn-1"><span class="tsd-signature-symbol">get</span> rpn<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/shutingyard.Token.html" class="tsd-signature-type tsd-kind-type-alias">Token</a><span class="tsd-signature-symbol">[]</span></li>
|
|
113
113
|
<li class="tsd-description">
|
|
114
|
-
<h4 class="tsd-returns-title">Returns <a href="../types/shutingyard.Token.html" class="tsd-signature-type
|
|
114
|
+
<h4 class="tsd-returns-title">Returns <a href="../types/shutingyard.Token.html" class="tsd-signature-type tsd-kind-type-alias">Token</a><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
|
|
115
115
|
<ul>
|
|
116
|
-
<li>Defined in <a href="https://github.com/basilgass/
|
|
117
|
-
<section class="tsd-panel tsd-member
|
|
118
|
-
<h3 class="tsd-anchor-link"><span>rpn<wbr/>Token</span><a href="#rpnToken" aria-label="Permalink" class="tsd-anchor-icon"><svg
|
|
119
|
-
<ul class="tsd-signatures
|
|
116
|
+
<li>Defined in <a href="https://github.com/basilgass/PiMath/blob/e13554f/src/maths/shutingyard.ts#L46">shutingyard.ts:46</a></li></ul></aside></li></ul></section>
|
|
117
|
+
<section class="tsd-panel tsd-member"><a id="rpnToken" class="tsd-anchor"></a>
|
|
118
|
+
<h3 class="tsd-anchor-link"><span>rpn<wbr/>Token</span><a href="#rpnToken" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
119
|
+
<ul class="tsd-signatures">
|
|
120
120
|
<li class="tsd-signature" id="rpnToken.rpnToken-1"><span class="tsd-signature-symbol">get</span> rpnToken<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></li>
|
|
121
121
|
<li class="tsd-description">
|
|
122
122
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
|
|
123
123
|
<ul>
|
|
124
|
-
<li>Defined in <a href="https://github.com/basilgass/
|
|
124
|
+
<li>Defined in <a href="https://github.com/basilgass/PiMath/blob/e13554f/src/maths/shutingyard.ts#L51">shutingyard.ts:51</a></li></ul></aside></li></ul></section></section>
|
|
125
125
|
<section class="tsd-panel-group tsd-member-group">
|
|
126
126
|
<h2>Methods</h2>
|
|
127
|
-
<section class="tsd-panel tsd-member
|
|
128
|
-
<h3 class="tsd-anchor-link"><span>Next<wbr/>Token</span><a href="#NextToken" aria-label="Permalink" class="tsd-anchor-icon"><svg
|
|
129
|
-
<ul class="tsd-signatures
|
|
130
|
-
<li class="tsd-signature tsd-anchor-link" id="NextToken.NextToken-1"
|
|
127
|
+
<section class="tsd-panel tsd-member"><a id="NextToken" class="tsd-anchor"></a>
|
|
128
|
+
<h3 class="tsd-anchor-link"><span>Next<wbr/>Token</span><a href="#NextToken" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
129
|
+
<ul class="tsd-signatures">
|
|
130
|
+
<li class="tsd-signature tsd-anchor-link" id="NextToken.NextToken-1"><span class="tsd-kind-call-signature">Next<wbr/>Token</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">expr</span>, <span class="tsd-kind-parameter">start</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]</span><a href="#NextToken.NextToken-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
|
131
131
|
<li class="tsd-description">
|
|
132
132
|
<div class="tsd-comment tsd-typography"><p>Get the next token to analyse.</p>
|
|
133
133
|
</div>
|
|
@@ -135,33 +135,36 @@
|
|
|
135
135
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
136
136
|
<ul class="tsd-parameter-list">
|
|
137
137
|
<li>
|
|
138
|
-
<h5>expr
|
|
138
|
+
<h5><span class="tsd-kind-parameter">expr</span>: <span class="tsd-signature-type">string</span></h5>
|
|
139
139
|
<div class="tsd-comment tsd-typography"><p>(string) Expression to analyse</p>
|
|
140
|
-
</div
|
|
140
|
+
</div>
|
|
141
|
+
<div class="tsd-comment tsd-typography"></div></li>
|
|
141
142
|
<li>
|
|
142
|
-
<h5>start
|
|
143
|
+
<h5><span class="tsd-kind-parameter">start</span>: <span class="tsd-signature-type">number</span></h5>
|
|
143
144
|
<div class="tsd-comment tsd-typography"><p>(number) CUrrent position in the expr string.</p>
|
|
144
|
-
</div
|
|
145
|
-
<
|
|
145
|
+
</div>
|
|
146
|
+
<div class="tsd-comment tsd-typography"></div></li></ul></div>
|
|
147
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]</span></h4>
|
|
148
|
+
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
146
149
|
<ul>
|
|
147
|
-
<li>Defined in <a href="https://github.com/basilgass/
|
|
148
|
-
<section class="tsd-panel tsd-member
|
|
149
|
-
<h3 class="tsd-anchor-link"><span>normalize</span><a href="#normalize" aria-label="Permalink" class="tsd-anchor-icon"><svg
|
|
150
|
-
<ul class="tsd-signatures
|
|
151
|
-
<li class="tsd-signature tsd-anchor-link" id="normalize.normalize-1"
|
|
150
|
+
<li>Defined in <a href="https://github.com/basilgass/PiMath/blob/e13554f/src/maths/shutingyard.ts#L133">shutingyard.ts:133</a></li></ul></aside></li></ul></section>
|
|
151
|
+
<section class="tsd-panel tsd-member"><a id="normalize" class="tsd-anchor"></a>
|
|
152
|
+
<h3 class="tsd-anchor-link"><span>normalize</span><a href="#normalize" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
153
|
+
<ul class="tsd-signatures">
|
|
154
|
+
<li class="tsd-signature tsd-anchor-link" id="normalize.normalize-1"><span class="tsd-kind-call-signature">normalize</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">expr</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#normalize.normalize-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
|
152
155
|
<li class="tsd-description">
|
|
153
156
|
<div class="tsd-parameters">
|
|
154
157
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
155
158
|
<ul class="tsd-parameter-list">
|
|
156
159
|
<li>
|
|
157
|
-
<h5>expr
|
|
160
|
+
<h5><span class="tsd-kind-parameter">expr</span>: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
158
161
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
159
162
|
<ul>
|
|
160
|
-
<li>Defined in <a href="https://github.com/basilgass/
|
|
161
|
-
<section class="tsd-panel tsd-member
|
|
162
|
-
<h3 class="tsd-anchor-link"><span>parse</span><a href="#parse" aria-label="Permalink" class="tsd-anchor-icon"><svg
|
|
163
|
-
<ul class="tsd-signatures
|
|
164
|
-
<li class="tsd-signature tsd-anchor-link" id="parse.parse-1"
|
|
163
|
+
<li>Defined in <a href="https://github.com/basilgass/PiMath/blob/e13554f/src/maths/shutingyard.ts#L194">shutingyard.ts:194</a></li></ul></aside></li></ul></section>
|
|
164
|
+
<section class="tsd-panel tsd-member"><a id="parse" class="tsd-anchor"></a>
|
|
165
|
+
<h3 class="tsd-anchor-link"><span>parse</span><a href="#parse" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
166
|
+
<ul class="tsd-signatures">
|
|
167
|
+
<li class="tsd-signature tsd-anchor-link" id="parse.parse-1"><span class="tsd-kind-call-signature">parse</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">expr</span>, <span class="tsd-kind-parameter">uniformize</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="shutingyard.Shutingyard.html" class="tsd-signature-type tsd-kind-class">Shutingyard</a><a href="#parse.parse-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
|
165
168
|
<li class="tsd-description">
|
|
166
169
|
<div class="tsd-comment tsd-typography"><p>Parse an expression using the shutting yard tree algorithms</p>
|
|
167
170
|
</div>
|
|
@@ -169,30 +172,35 @@
|
|
|
169
172
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
170
173
|
<ul class="tsd-parameter-list">
|
|
171
174
|
<li>
|
|
172
|
-
<h5>expr
|
|
175
|
+
<h5><span class="tsd-kind-parameter">expr</span>: <span class="tsd-signature-type">string</span></h5>
|
|
173
176
|
<div class="tsd-comment tsd-typography"><p>(string) Expression to analyse
|
|
174
177
|
Returns a RPN list of items.</p>
|
|
175
|
-
</div
|
|
178
|
+
</div>
|
|
179
|
+
<div class="tsd-comment tsd-typography"></div></li>
|
|
176
180
|
<li>
|
|
177
|
-
<h5><code class="tsd-tag ts-flagOptional">Optional</code> uniformize
|
|
178
|
-
<
|
|
181
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">uniformize</span>: <span class="tsd-signature-type">boolean</span></h5>
|
|
182
|
+
<div class="tsd-comment tsd-typography"></div></li></ul></div>
|
|
183
|
+
<h4 class="tsd-returns-title">Returns <a href="shutingyard.Shutingyard.html" class="tsd-signature-type tsd-kind-class">Shutingyard</a></h4>
|
|
184
|
+
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
179
185
|
<ul>
|
|
180
|
-
<li>Defined in <a href="https://github.com/basilgass/
|
|
181
|
-
<section class="tsd-panel tsd-member
|
|
182
|
-
<h3 class="tsd-anchor-link"><span>token<wbr/>Config<wbr/>Initialization</span><a href="#tokenConfigInitialization" aria-label="Permalink" class="tsd-anchor-icon"><svg
|
|
183
|
-
<ul class="tsd-signatures
|
|
184
|
-
<li class="tsd-signature tsd-anchor-link" id="tokenConfigInitialization.tokenConfigInitialization-1">token<wbr/>Config<wbr/>Initialization
|
|
186
|
+
<li>Defined in <a href="https://github.com/basilgass/PiMath/blob/e13554f/src/maths/shutingyard.ts#L366">shutingyard.ts:366</a></li></ul></aside></li></ul></section>
|
|
187
|
+
<section class="tsd-panel tsd-member"><a id="tokenConfigInitialization" class="tsd-anchor"></a>
|
|
188
|
+
<h3 class="tsd-anchor-link"><span>token<wbr/>Config<wbr/>Initialization</span><a href="#tokenConfigInitialization" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
189
|
+
<ul class="tsd-signatures">
|
|
190
|
+
<li class="tsd-signature tsd-anchor-link" id="tokenConfigInitialization.tokenConfigInitialization-1"><span class="tsd-kind-call-signature">token<wbr/>Config<wbr/>Initialization</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/shutingyard.tokenType.html" class="tsd-signature-type tsd-kind-type-alias">tokenType</a><a href="#tokenConfigInitialization.tokenConfigInitialization-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
|
185
191
|
<li class="tsd-description">
|
|
186
192
|
<div class="tsd-comment tsd-typography"><p>Determin if the token is a defined operation
|
|
187
193
|
Defined operations: + - * / ^ sin cos tan</p>
|
|
188
194
|
</div>
|
|
189
|
-
<h4 class="tsd-returns-title">Returns <a href="../types/shutingyard.tokenType.html" class="tsd-signature-type
|
|
195
|
+
<h4 class="tsd-returns-title">Returns <a href="../types/shutingyard.tokenType.html" class="tsd-signature-type tsd-kind-type-alias">tokenType</a></h4>
|
|
196
|
+
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
190
197
|
<ul>
|
|
191
|
-
<li>Defined in <a href="https://github.com/basilgass/
|
|
192
|
-
<div class="col-
|
|
198
|
+
<li>Defined in <a href="https://github.com/basilgass/PiMath/blob/e13554f/src/maths/shutingyard.ts#L72">shutingyard.ts:72</a></li></ul></aside></li></ul></section></section></div>
|
|
199
|
+
<div class="col-sidebar">
|
|
200
|
+
<div class="page-menu">
|
|
193
201
|
<div class="tsd-navigation settings">
|
|
194
202
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
195
|
-
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg>
|
|
203
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)" id="icon-chevronDown"></path></svg>Settings</h3></summary>
|
|
196
204
|
<div class="tsd-accordion-details">
|
|
197
205
|
<div class="tsd-filter-visibility">
|
|
198
206
|
<h4 class="uppercase">Member Visibility</h4><form>
|
|
@@ -202,47 +210,50 @@ Defined operations: + - * / ^ sin cos tan</p>
|
|
|
202
210
|
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
|
|
203
211
|
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div>
|
|
204
212
|
<div class="tsd-theme-toggle">
|
|
205
|
-
<h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
206
|
-
<
|
|
207
|
-
<
|
|
208
|
-
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
213
|
+
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
214
|
+
<details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary">
|
|
215
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>On This Page</h3></summary>
|
|
209
216
|
<div class="tsd-accordion-details">
|
|
210
217
|
<ul>
|
|
211
|
-
<li class="
|
|
212
|
-
<
|
|
213
|
-
<li class="tsd-kind-
|
|
214
|
-
<li class="tsd-kind-
|
|
215
|
-
<li class="tsd-kind-
|
|
216
|
-
<li class="tsd-kind-
|
|
217
|
-
<li class="tsd-kind-
|
|
218
|
-
<li class="tsd-kind-
|
|
219
|
-
<li class="tsd-kind-
|
|
220
|
-
<li class="tsd-kind-
|
|
221
|
-
<li class="tsd-kind-
|
|
222
|
-
<li class="tsd-kind-
|
|
223
|
-
<li class="tsd-kind-
|
|
224
|
-
<
|
|
225
|
-
<
|
|
226
|
-
<
|
|
227
|
-
<li class="tsd-kind-
|
|
228
|
-
<li class="
|
|
229
|
-
<
|
|
230
|
-
<
|
|
231
|
-
<li
|
|
232
|
-
<
|
|
233
|
-
<li
|
|
234
|
-
<li
|
|
235
|
-
<li
|
|
236
|
-
<li
|
|
237
|
-
<li
|
|
238
|
-
<li
|
|
239
|
-
<li
|
|
240
|
-
<li
|
|
241
|
-
<
|
|
242
|
-
<
|
|
243
|
-
<
|
|
244
|
-
<li
|
|
245
|
-
<li
|
|
246
|
-
<
|
|
218
|
+
<li><a href="#constructor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-512"></use></svg><span>constructor</span></a></li>
|
|
219
|
+
<li><a href="#_mode" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_mode</span></a></li>
|
|
220
|
+
<li><a href="#_rpn" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_rpn</span></a></li>
|
|
221
|
+
<li><a href="#_tokenConfig" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_token<wbr/>Config</span></a></li>
|
|
222
|
+
<li><a href="#_tokenConstant" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_token<wbr/>Constant</span></a></li>
|
|
223
|
+
<li><a href="#_tokenKeys" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_token<wbr/>Keys</span></a></li>
|
|
224
|
+
<li><a href="#_uniformize" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_uniformize</span></a></li>
|
|
225
|
+
<li><a href="#rpn" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>rpn</span></a></li>
|
|
226
|
+
<li><a href="#rpnToken" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>rpn<wbr/>Token</span></a></li>
|
|
227
|
+
<li><a href="#NextToken" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>Next<wbr/>Token</span></a></li>
|
|
228
|
+
<li><a href="#normalize" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>normalize</span></a></li>
|
|
229
|
+
<li><a href="#parse" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>parse</span></a></li>
|
|
230
|
+
<li><a href="#tokenConfigInitialization" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>token<wbr/>Config<wbr/>Initialization</span></a></li></ul></div></details></div>
|
|
231
|
+
<div class="site-menu">
|
|
232
|
+
<nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>pimath</span></a>
|
|
233
|
+
<ul class="tsd-small-nested-navigation">
|
|
234
|
+
<li><a href="../modules/Logicalset.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Logicalset</span></a></li>
|
|
235
|
+
<li><a href="../modules/Polynom.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Polynom</span></a></li>
|
|
236
|
+
<li><a href="../modules/Vector.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Vector</span></a></li>
|
|
237
|
+
<li><a href="../modules/Vector-1.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Vector</span></a></li>
|
|
238
|
+
<li><a href="../modules/algebra_equation.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>algebra/equation</span></a></li>
|
|
239
|
+
<li><a href="../modules/algebra_linearSystem.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>algebra/linear<wbr/>System</span></a></li>
|
|
240
|
+
<li><a href="../modules/algebra_monom.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>algebra/monom</span></a></li>
|
|
241
|
+
<li><a href="../modules/algebra_polynom.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>algebra/polynom</span></a></li>
|
|
242
|
+
<li><a href="../modules/coefficients_fraction.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>coefficients/fraction</span></a></li>
|
|
243
|
+
<li><a href="../modules/geometry_circle.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>geometry/circle</span></a></li>
|
|
244
|
+
<li><a href="../modules/geometry_line.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>geometry/line</span></a></li>
|
|
245
|
+
<li><a href="../modules/geometry_triangle.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>geometry/triangle</span></a></li>
|
|
246
|
+
<li><a href="../modules/numeric.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>numeric</span></a></li>
|
|
247
|
+
<li>
|
|
248
|
+
<details class="tsd-index-accordion" open data-key="shutingyard"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg><a href="../modules/shutingyard.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>shutingyard</span></a></summary>
|
|
249
|
+
<div class="tsd-accordion-details">
|
|
250
|
+
<ul class="tsd-nested-navigation">
|
|
251
|
+
<li><a href="../enums/shutingyard.ShutingyardMode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g></svg><span>Shutingyard<wbr/>Mode</span></a></li>
|
|
252
|
+
<li><a href="../enums/shutingyard.ShutingyardType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Shutingyard<wbr/>Type</span></a></li>
|
|
253
|
+
<li><a href="shutingyard.Shutingyard.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g></svg><span>Shutingyard</span></a></li>
|
|
254
|
+
<li><a href="../types/shutingyard.Token.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g></svg><span>Token</span></a></li>
|
|
255
|
+
<li><a href="../types/shutingyard.tokenType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>token<wbr/>Type</span></a></li>
|
|
256
|
+
<li><a href="../variables/shutingyard.tokenConstant.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g></svg><span>token<wbr/>Constant</span></a></li></ul></div></details></li></ul></nav></div></div></div>
|
|
257
|
+
<div class="tsd-generator">
|
|
247
258
|
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
248
|
-
<div class="overlay"></div
|
|
259
|
+
<div class="overlay"></div></body></html>
|