> # R MAY BE USED AS AN ORDINARY CALCULATOR > > 2 + 3 * 5 [1] 17 > log (10) [1] 2.302585 > 4^2 [1] 16 > 3/2 [1] 1.5 > sqrt (16) [1] 4 > abs (3-7) [1] 4 > pi [1] 3.141593 > exp(2) [1] 7.389056 > 15 %/% 4 [1] 3 > > # ASSIGNMENT OPERATOR > > x<- log(2.843432) *pi > x [1] 3.283001 > sqrt(x) [1] 1.811905 > floor(x) # largest integer less than or equal to x [1] 3 > ceiling(x) # smallest integer greater than or equal to x