User Tools

Site Tools


code:formulas

This is an old revision of the document!


Formulas

SyMAT formulas are stored as text variables. It is recommended for clarity to use single quotes (' ') for formulas and double quotes (“ ”) for normal text.

Format

Formulas are processed with a separate script engine, and have different rules than the normal JavaScript and Python syntax. The best way to show the format is to give some examples.

'sin[x^2]'
'(x/3)*(cos[x]^2)'

Functions use square brackets, and you don't have to use pow(x,y) to raise a number to a power.

code/formulas.1424719034.txt.gz · Last modified: 2019/04/16 02:40 (external edit)