pimath 0.0.37 → 0.0.38
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/pi.js +5 -5
- package/dist/pi.js.map +1 -1
- package/dist/pi.min.js +1 -1
- package/dist/pi.min.js.map +1 -1
- package/docs/assets/main.js +1 -1
- package/esm/maths/shutingyard.d.ts +3 -3
- package/esm/maths/shutingyard.js +5 -5
- package/esm/maths/shutingyard.js.map +1 -1
- package/package.json +1 -1
- package/src/maths/shutingyard.ts +40 -39
- package/esm/main.d.ts +0 -41
- package/esm/main.js +0 -47
- package/esm/main.js.map +0 -1
package/dist/pi.js
CHANGED
|
@@ -6151,6 +6151,11 @@ class Shutingyard {
|
|
|
6151
6151
|
this._mode = typeof mode === 'undefined' ? ShutingyardMode.POLYNOM : mode;
|
|
6152
6152
|
this.tokenConfigInitialization();
|
|
6153
6153
|
}
|
|
6154
|
+
// Getter
|
|
6155
|
+
get rpn() {
|
|
6156
|
+
// console.log(this._rpn)
|
|
6157
|
+
return this._rpn;
|
|
6158
|
+
}
|
|
6154
6159
|
/**
|
|
6155
6160
|
* Determin if the token is a defined operation
|
|
6156
6161
|
* Defined operations: + - * / ^ sin cos tan
|
|
@@ -6420,11 +6425,6 @@ class Shutingyard {
|
|
|
6420
6425
|
this._rpn = outQueue.concat(opStack.reverse());
|
|
6421
6426
|
return this;
|
|
6422
6427
|
}
|
|
6423
|
-
// Getter
|
|
6424
|
-
get rpn() {
|
|
6425
|
-
// console.log(this._rpn)
|
|
6426
|
-
return this._rpn;
|
|
6427
|
-
}
|
|
6428
6428
|
}
|
|
6429
6429
|
exports.Shutingyard = Shutingyard;
|
|
6430
6430
|
|