-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
I believe the following illustrates some undesirable behavior.
var sn = SchemeNumber;
var a = sn('#i-1');
var p = sn('1');
var result = sn.fn['expt'](a, p);
console.log(a + "^" + p + " = " + result);
console.log(a + "^" + p + " = " + result.toString());
Raising an inexact negative number to a (non-complex) power results in a complex number.
And, printing this number gives NaN unless the toString method is explicitly called.
Metadata
Metadata
Assignees
Labels
No labels