pyret-npm 0.0.68 → 0.0.69
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/package.json
CHANGED
|
@@ -39890,6 +39890,11 @@ define("pyret-base/js/js-numbers", function() {
|
|
|
39890
39890
|
if (typeof(n) === 'number') {
|
|
39891
39891
|
return Roughnum.makeInstance(Math.log(n), errbacks);
|
|
39892
39892
|
}
|
|
39893
|
+
if (isRational(n) && !isInteger(n)) {
|
|
39894
|
+
return subtract(log(numerator(n, errbacks), errbacks),
|
|
39895
|
+
log(denominator(n, errbacks), errbacks),
|
|
39896
|
+
errbacks);
|
|
39897
|
+
}
|
|
39893
39898
|
var nFix = n.toFixnum();
|
|
39894
39899
|
if (typeof(nFix) === 'number' && nFix !== Infinity) {
|
|
39895
39900
|
return Roughnum.makeInstance(Math.log(nFix), errbacks);
|
|
@@ -802,6 +802,11 @@ define("pyret-base/js/js-numbers", function() {
|
|
|
802
802
|
if (typeof(n) === 'number') {
|
|
803
803
|
return Roughnum.makeInstance(Math.log(n), errbacks);
|
|
804
804
|
}
|
|
805
|
+
if (isRational(n) && !isInteger(n)) {
|
|
806
|
+
return subtract(log(numerator(n, errbacks), errbacks),
|
|
807
|
+
log(denominator(n, errbacks), errbacks),
|
|
808
|
+
errbacks);
|
|
809
|
+
}
|
|
805
810
|
var nFix = n.toFixnum();
|
|
806
811
|
if (typeof(nFix) === 'number' && nFix !== Infinity) {
|
|
807
812
|
return Roughnum.makeInstance(Math.log(nFix), errbacks);
|
|
@@ -39856,6 +39856,11 @@ define("pyret-base/js/js-numbers", function() {
|
|
|
39856
39856
|
if (typeof(n) === 'number') {
|
|
39857
39857
|
return Roughnum.makeInstance(Math.log(n), errbacks);
|
|
39858
39858
|
}
|
|
39859
|
+
if (isRational(n) && !isInteger(n)) {
|
|
39860
|
+
return subtract(log(numerator(n, errbacks), errbacks),
|
|
39861
|
+
log(denominator(n, errbacks), errbacks),
|
|
39862
|
+
errbacks);
|
|
39863
|
+
}
|
|
39859
39864
|
var nFix = n.toFixnum();
|
|
39860
39865
|
if (typeof(nFix) === 'number' && nFix !== Infinity) {
|
|
39861
39866
|
return Roughnum.makeInstance(Math.log(nFix), errbacks);
|