X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.runtime%2Fsrc-isv%2FArithmetic.mediawiki;h=5317c2871b594b851604c8867e3c6282379b43db;hb=97872f96afc18f4cd5b959d869fed80cd92f6aa1;hp=3613bf136dda161390e5abcaab1b07cfe626f126;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.runtime/src-isv/Arithmetic.mediawiki b/bundles/org.simantics.scl.runtime/src-isv/Arithmetic.mediawiki index 3613bf136..5317c2871 100644 --- a/bundles/org.simantics.scl.runtime/src-isv/Arithmetic.mediawiki +++ b/bundles/org.simantics.scl.runtime/src-isv/Arithmetic.mediawiki @@ -1,63 +1,63 @@ -== Arithmetic == - -Writing mathematical formulas in SCL is mostly unsurprising. -
0.5*m*v^2 + m*g*h
- -When applying functions, parentheses are not needed around the -parameters and multiple parameters are separated by whitespace: -
sin x + sin y
-
atan2 y x
- -The following mathematical functions are provided in the standard library: -{| -| ^ -| exponentiation -|- -| *, / -| multiplication and division -|- -| div,mod -| integer division and remainder -|- -| +, - -| addition and substraction -|- -| ==, != -| equality and inequality -|- -| <, <=, >=, > -| comparison -|- -| abs -| absolute value -|- -| min, max -| minimum and maximum -|- -| pi -| constant pi -|- -| exp -| exponential function -|- -| log -| natural logarithm -|- -| sqrt -| square root -|- -| sin, cos, tan -| trigonometric functions -|- -| asin, acos, atan -| inverse trigonometric functions -|- -| atan2 -| angle of a point -|- -| sinh, cosh, tanh -| hyberbolic functions -|- -| floor, ceil -| rounding down and up to integer -|} +== Arithmetic == + +Writing mathematical formulas in SCL is mostly unsurprising. +
0.5*m*v^2 + m*g*h
+ +When applying functions, parentheses are not needed around the +parameters and multiple parameters are separated by whitespace: +
sin x + sin y
+
atan2 y x
+ +The following mathematical functions are provided in the standard library: +{| +| ^ +| exponentiation +|- +| *, / +| multiplication and division +|- +| div,mod +| integer division and remainder +|- +| +, - +| addition and substraction +|- +| ==, != +| equality and inequality +|- +| <, <=, >=, > +| comparison +|- +| abs +| absolute value +|- +| min, max +| minimum and maximum +|- +| pi +| constant pi +|- +| exp +| exponential function +|- +| log +| natural logarithm +|- +| sqrt +| square root +|- +| sin, cos, tan +| trigonometric functions +|- +| asin, acos, atan +| inverse trigonometric functions +|- +| atan2 +| angle of a point +|- +| sinh, cosh, tanh +| hyberbolic functions +|- +| floor, ceil +| rounding down and up to integer +|}