[ top | up ]
Miscellaneous Mathematical Functions
Syntax
abs(x)
sqrt(x)
Description
These functions compute miscelaneous mathematical function.
The naming follows the standard for computer languages
such as C or Fortran.
See Also
Arithmetic
.
Examples
xx <- -9:9
plot(xx, sqrt(abs(xx)), col = "red")
lines(spline(xx, sqrt(abs(xx)), n=101), col = "pink")