Professional Documents
Culture Documents
Arithmetic Operators
Arithmetic Operators
- --> 2-1
Subtraction ans =
1.
* --> 2*2
Multiplication ans =
4.
/ or \ --> 16/2
Division ans =
8.
^ --> 4^3
Exponentiation ans =
64.
Sqrt(x) --> Sqrt (144)
Square root ans =
12.
nthroot(x, n) --> nthroot (1, 2)
ans =
1. nth root
1.
19.
Log(x) --> log (144)
Natural logarithm ans =
0.
%e --> %e
Euler’s constant %e =
2.7182818
%pi --> %pi
%pi =
3.1415927