-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
I came across a bug in the last example in the docs for implicit multiplication:
math.eval('sqrt(4)(1+2)'); // TypeError: fn is not a functionThe output of console.log(util.inspect(math.parse('sqrt(4)(1+2)'), {depth:100}));
Node {
fn:
Node {
fn: Node { name: 'sqrt' },
args: [ Node { value: '4', valueType: 'number' } ] },
args:
[ Node {
implicit: false,
op: '+',
fn: 'add',
args:
[ Node { value: '1', valueType: 'number' },
Node { value: '2', valueType: 'number' } ] } ],
comment: '' }The error occurs in the current develop branch but not the master branch.
Reactions are currently unavailable