User Tools

Site Tools


code:formulas

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
code:formulas [2015/01/17 15:06]
skylarmt created
code:formulas [2019/04/16 02:40] (current)
Line 1: Line 1:
 ====== Formulas ====== ====== 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.+SyMAT formulas are stored as [[variable#​string|string]] ​variables. ​ It is recommended for clarity to use single quotes (' ') for formulas and double quotes (" ") for normal text, however in Java double quotes must be used.
  
 ===== Format ===== ===== 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.+Formulas are processed with a dedicated ​engine, and have different rules from normal ​code.  The best way to show the format is to give some examples.
  
 <​code>​ <​code>​
-'sin[x^2]' +sin[x^2] 
-'(x/​3)*(cos[x]^2)'+(x/​3)*(cos[x]^2)
 </​code>​ </​code>​
  
 Functions use square brackets, and you don't have to use pow(x,y) to raise a number to a power. Functions use square brackets, and you don't have to use pow(x,y) to raise a number to a power.
code/formulas.1421532400.txt.gz · Last modified: 2019/04/16 02:40 (external edit)