Rev 38432 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{abs}\title{Miscellaneous Mathematical Functions}\usage{abs(x)sqrt(x)}\alias{abs}\alias{sqrt}\description{These functions compute miscellaneous mathematical functions.The naming follows the standard for computer languagessuch as C or Fortran.}\arguments{\item{x}{a numeric or \code{\link{complex}} vector or array.}}\details{These are generic functions: methods can be defined for themindividually or via the \code{\link[base:groupGeneric]{Math}}group generic. For complexarguments (and the default method), \code{z},\code{abs(z) == \link{Mod}(z)} and \code{sqrt(z) == z^0.5}.}\seealso{\code{\link{Arithmetic}} for simple, \code{\link{log}} for logarithmic,\code{\link{sin}} for trigonometric, and \code{\link{Special}} forspecial mathematical functions.}\references{Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)\emph{The New S Language}.Wadsworth \& Brooks/Cole.}\examples{require(stats) # for splinexx <- -9:9plot(xx, sqrt(abs(xx)), col = "red")lines(spline(xx, sqrt(abs(xx)), n=101), col = "pink")}\keyword{math}