Skip to content

1. Arithmetics

Julio edited this page Jan 14, 2022 · 4 revisions
> 2+2
[1] 4

> 2*3
[1] 6

> 5-7
[1] -2

> 9/3
[1] 3

> 3²
Error: unexpected input in ""
> 3^2
[1] 9

> sqrt(4)
[1] 2


> exp(1)
[1] 2.718282

> 1 == 1
[1] TRUE

> 1 != 1
[1] FALSE