This is the most important line:
(you should change the math expression but do not change the word "math")
|
You must add the following line to run the application:
|
Copy one of these examples and save it to a file named test.html and then open it on your browser.
1+2/3 | |
SQRT(1/(1+π)) |
Constants (greek chars):
φ | φ |
Φ | Φ |
Greek char names:
alpha beta gamma delta epsilon zeta eta theta iota kappa lambda mu
nu xi omicron pi rho sigma tau upsilon phi chi psi omega
Greek chars:
αβγδεζηθικλμνξοπρστυφχψω
ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ
Other constants:
&infinity; | &infinity; |
Operators:
0.1234567e89 | numbers |
+ - | binary operators |
* / | binary operators |
^ | binary operator |
! | factorial |
- | unary operator |
( ) [ ] { } « » | agregators |
sin( angle ) | functions |
= | equal operator |
A ... Z | variables |
, ; | separators |
hide result hide result
1+2+3+4 1+2+3+4
show result show result
1+2+3+4 1+2+3+4
hide result hide result
1+2+3+4 1+2+3+4
Function arguments are separated by ','
fraction:
a / b
1/2 1/2
factorial:
expression !
FACT( expression )
3! 3!
(4+1)! (4+1)!
FACT(5) FACT(5)
absolute/modulus:
ABS( arg )
ABS(-2/5) ABS(-2/5)
power:
base ^ exponent
POWER( base , exponent )
2^3 2^3
POWER(2,3) POWER(2,3)
square root:
SQRT( arg )
SQRT(25) SQRT(25)
SQRT(50/2) SQRT(50/2)
any index root:
NROOT( arg1 , arg2 )
NROOT(3,8) NROOT(3,8)
8^(1/3) 8^(1/3)
Decimal logarithm:
LOG10( arg )
LOG10(1000) LOG10(1000)
10^3 10^3
Natural logarithm:
LN( arg )
LN(e) LN(e)
LN(1000) LN(1000)
LOG10(1000) = LN(1000)/LN(10) LN(1000)/LN(10)
Exponential:
EXP( arg )
EXP(1) EXP(1)
e^1 e^1
e^10 e^10
10^3 = EXP(3*LN(10)) EXP(3*LN(10))
2^3 = EXP(3*LN(2)) EXP(3*LN(2))
If you change 'e' then things get ambiguous:
LETVAR(e,2) LETVAR(e,2)
e^1 e^1
EXP(1) EXP(1)
e e
radians |
degrees |
SIN(pi/2) SIN(pi/2) | SINE(90) SINE(90) |
COS(0) COS(0) | COSINE(0) COSINE(0) |
TAN(pi/4) TAN(pi/4) | TANGENT(45) TANGENT(45) |
ARCSIN(1) ARCSIN(1) | ARCSINE(1) ARCSINE(1) |
ARCCOS(1) ARCCOS(1) | ARCCOSINE(1) ARCCOSINE(1) |
ARCTAN(1) ARCTAN(1) | ARCTANGENT(1) ARCTANGENT(1) |
INT
INT( expression )
INT(2.35) INT(2.35)
INT(-2.35) INT(-2.35)
INT(2.53) INT(2.53)
INT(-2.53) INT(-2.53)
FRAC
FRAC( expression )
FRAC(2.35) FRAC(2.35)
FRAC(-2.35) FRAC(-2.35)
FRAC(2.53) FRAC(2.53)
FRAC(-2.53) FRAC(-2.53)
ROUND
ROUND( expression )
ROUND(2.35) ROUND(2.35)
ROUND(-2.35) ROUND(-2.35)
ROUND(2.53) ROUND(2.53)
ROUND(-2.53) ROUND(-2.53)
LET variable with a value
LETVAR( variable , expression )
show result
v v
hide result
LETVAR(v,5) LETVAR(v,5)
show result
v v
ARRAY - Set array index:
LETARRAY( name, index, value )
LETARRAY( u, 1, 10 ) LETARRAY( u, 1, 10 )
LETARRAY( u, 2, 20 ) LETARRAY( u, 2, 20 )
Get ARRAY index:
arrayname[ index ]
u[1]+u[2] u[1]+u[2]
ABSROOT ABSRT
ABSROOT( expression )
ABSRT( expression )
ABSROOT(27) ABSROOT(27)
3^3 3^3
ABSRT(256) ABSRT(256)
4^4 4^4
SET
SET( list )
SET(1,2,3,4) SET(1,2,3,4)
SET(0,1/2,1) SET(0,1/2,1)
SET(0,(1/2)/(3/4),1) SET(0,(1/2)/(3/4),1)
SYSTEM:
(lines are delimited with ';')
SYSTEM( equation1 , equation2 , ... , equationN )
system(x-y=0;x+y=2) SYSTEM(x-y=0;x+y=2)
limit:
LIMIT( var , limit , expression )
LIMIT(x,+0,sin(x)/x)
LIMIT(y,+&infinity;,1/y)
sum:
@sum( var ; start ; end ; expression )
@sum(n;1;2;2*n)=2+4=6
product:
@product( var ; start ; end ; expression )
@product(n;1;2;2*n)=2*4=8
choose:
@choose( subset ; set )
@choose(k;n)
determinant:
@determinant( (line1) ; (line2) ; ... ; (lineN) )
where line[i] is: column1 ; column2 ; ... columnN
@determinant((11;12);(21;22);(31;32))
matrix:
@matrix( (line1) ; (line2) ; ... ; (lineN) )
@matrix( (line1) ; (line2) ; ... ; (lineN) ; exp )
where linha[i] is: column1 ; column2 ; ... columnN
where exp could be: -1 or T
@matrix((11;12);(21;22);(31;32);T)
norm of matrix:
@norm( (line1) ; (line2) ; ... ; (lineN) )
where line[i] is: column1 ; column2 ; ... columnN
@norm((11;12);(21;22);(31;32))
integral:
@integral( start ; end ; expr )
@integral( ; ; expr )
@integral(0;1;x*dx)
primitive:
@primitive( expr ; start ; end )
@primitive(x+2;0;1)
differential:
@differential( expr ; n )
u'+v''=@differential(u;1)+@differential(v;2)
hide result
letvar(a,1)
letvar(b,-3)
letvar(c,2)
show result
(-b+sqrt(b^2-4*a*c))/(2*a) (-b+sqrt(b^2-4*a*c))/(2*a)
(-b-sqrt(b^2-4*a*c))/(2*a) (-b-sqrt(b^2-4*a*c))/(2*a)
hide result
F=G*((M*m)/(d^2))
show result