Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Shameless plug (again): This is one of the issues I addressed when I wrote the competing mathup library.

alphanumeric tokens MUST be separated from each other with a symbol or whitespace.

    ooxx => ooxx
    oo xx => ∞×
    sqrtx => sqrtx
    sqrt x => √x
    sqrt(x) => √x
The way I deal with commas is that I always treat commas as an operator (or a seperator in group context), unless the author configures comma to be the decimal mark (and I only allow exactly one decimal mark for each parse run).

https://mathup.xyz



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: