Calculator
Enter a math expression and the result is outputted to the console.
Binary Operators
+
-
*
/
^
%%
Math Functions
abs
sqrt
log
exp
log10
factorial
Trigonometric Functions
sin
cos
tan
asin
acos
atan
Rounding
round ceiling floor trunc signif zapsmall
Math Quantities
Inf
-Inf
NaN
pi
exp(1)
1i
Examples :
> log(2)
[1] 0.6931472
> cos(pi)
[1] -1
> ceiling(3.2)
[1] 4
> 0/0
[1] NaN
> 1/Inf
[1] 0
Enter a math expression and the result is outputted to the console.
Binary Operators
+
-
*
/
^
%%
Math Functions
abs
sqrt
log
exp
log10
factorial
Trigonometric Functions
sin
cos
tan
asin
acos
atan
Rounding
round ceiling floor trunc signif zapsmall
Math Quantities
Inf
-Inf
NaN
pi
exp(1)
1i
Examples :
> log(2)
[1] 0.6931472
> cos(pi)
[1] -1
> ceiling(3.2)
[1] 4
> 0/0
[1] NaN
> 1/Inf
[1] 0