cortex-js/cortexjs.io

MathJSON confused

tqtrungse opened this issue · 1 comments

Hi,

I have used demo with expression: x = abs(-10).
I received the math JSON expression [ "Equal", "x", ["Multiply", "abs", ["Delimiter", -10]] ]

What is the "Delimiter"?
Why do you add multiplication?
The "ceil" function has the same issue as the "abs", but the "round" and "floor" function is good.
Do I miss something?

Thanks

arnog commented

There wasn't a definition for the abs() (or ceil()) functions. The absolute value is usually indicated with vertical bars |-10|.
The definitions have now been added in the main branch of the compute engine.