The R Project SVN R

Rev

Rev 27712 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27712 Rev 28651
Line 5... Line 5...
5
sqrt(x)
5
sqrt(x)
6
}
6
}
7
\alias{abs}
7
\alias{abs}
8
\alias{sqrt}
8
\alias{sqrt}
9
\description{
9
\description{
10
These functions compute miscellaneous mathematical functions.
10
  These functions compute miscellaneous mathematical functions.
11
The naming follows the standard for computer languages
11
  The naming follows the standard for computer languages
12
such as C or Fortran.
12
  such as C or Fortran.
13
}
13
}
14
\arguments{
14
\arguments{
15
  \item{x}{a numeric vector}
15
  \item{x}{a numeric or \code{\link{complex}} vector or array.}
16
}
16
}
17
\details{
17
\details{
18
  These are generic functions: methods can be defined for them
18
  These are generic functions: methods can be defined for them
19
  individually or via the \code{\link{Math}} group generic.
19
  individually or via the \code{\link{Math}} group generic.  For complex
-
 
20
  arguments (and the default method), \code{z},
-
 
21
  \code{abs(z) == \link{Mod}(z)} and \code{sqrt(z) == z^0.5}.
20
}
22
}
21
\seealso{
23
\seealso{
22
\code{\link{Arithmetic}} for simple, \code{\link{log}} for logarithmic,
24
  \code{\link{Arithmetic}} for simple, \code{\link{log}} for logarithmic,
23
\code{\link{sin}} for trigonometric, and \code{\link{Special}} for
25
  \code{\link{sin}} for trigonometric, and \code{\link{Special}} for
24
special mathematical functions.
26
  special mathematical functions.
25
}
27
}
26
\references{
28
\references{
27
  Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
29
  Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
28
  \emph{The New S Language}.
30
  \emph{The New S Language}.
29
  Wadsworth \& Brooks/Cole.
31
  Wadsworth \& Brooks/Cole.