October 2016
Beginner to intermediate
582 pages
11h 26m
English
Mathematical functions are an essential part in all computing environments. R provides several groups of basic math functions.
The basic functions include square root, and exponential and logarithm functions as the following table shows:

Note that sqrt() only works with real numbers. If a negative number is supplied, NaN will be produced:
sqrt(-1) ## Warning in sqrt(-1): NaNs produced ## [1] NaN
In R, numeric values can be finite, infinite (Inf and -Inf), and NaN values. The following code will produce infinite values.
First, produce a positively infinite value:
1 / 0 ## [1] Inf
Then, produce a negatively infinite ...