Description Usage Arguments Details S4 methods References See Also Examples
abs(x)
computes the absolute value of x, sqrt(x)
computes the
(principal) square root of x, √{x}.
The naming follows the standard for computer languages such as C or Fortran.
1 2 |
x |
a numeric or |
These are internal generic primitive functions: methods
can be defined for them individually or via the
Math
group generic. For complex
arguments (and the default method), z
, abs(z) ==
Mod(z)
and sqrt(z) == z^0.5
.
abs(x)
returns an integer
vector when x
is
integer
or logical
.
Both are S4 generic and members of the
Math
group generic.
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
Arithmetic
for simple, log
for logarithmic,
sin
for trigonometric, and Special
for
special mathematical functions.
‘plotmath’ for the use of sqrt
in plot annotation.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.