Parse an expression. Returns a node tree, which can be evaluated by invoking node.evaluate();
Expression to be parsed
Optionaloptions: ParseOptionsAvailable options
A node
Parse an expression. Returns a node tree, which can be evaluated by invoking node.evaluate();
Expressions to be parsed
Optionaloptions: ParseOptionsAvailable options
An array of nodes
Checks whether the current character c is a valid alpha character:
The previous and next characters are needed to determine whether this character is part of a unicode surrogate pair.
Current character in the expression
Previous character
Next character
Test whether the character c is a decimal mark (dot). This is the case when it's not the start of a delimiter '.*', './', or '.^'
checks if the given char c is a digit
a string with one character
checks if the given char c is a digit or dot
a string with one character
checks if the given char c is a hex digit
a string with one character
Test whether a character is a valid latin, greek, or letter-like character
Test whether two given 16 bit characters form a surrogate pair of a unicode math symbol.
https://unicode-table.com/en/ https://www.wikiwand.com/en/Mathematical_operators_and_symbols_in_Unicode
Note: In ES6 will be unicode aware: https://stackoverflow.com/questions/280712/javascript-unicode-regexes https://mathiasbynens.be/notes/es6-unicode-regex
Check whether given character c is a white space character: space, tab, or enter
Parse an expression. Returns a node tree, which can be evaluated by invoking node.evaluate().
Note the evaluating arbitrary expressions may involve security risks, see https://mathjs.org/docs/expressions/security.html for more information.
Syntax:
Example:
See also: