inverse-trigonometric-functions | R Documentation |
arcsine()
, arccosine()
, arctangent()
,
arcsecant()
, arccosecant()
, and arccotangent()
are
inverse trigonometric functions that return angle()
vectors
with a user chosen angular unit.
arcsine(
x,
unit = getOption("affiner_angular_unit", "degrees"),
tolerance = sqrt(.Machine$double.eps)
)
arccosine(
x,
unit = getOption("affiner_angular_unit", "degrees"),
tolerance = sqrt(.Machine$double.eps)
)
arctangent(x, unit = getOption("affiner_angular_unit", "degrees"), y = NULL)
arcsecant(x, unit = getOption("affiner_angular_unit", "degrees"))
arccosecant(x, unit = getOption("affiner_angular_unit", "degrees"))
arccotangent(x, unit = getOption("affiner_angular_unit", "degrees"))
x |
A numeric vector |
unit |
A string of the desired angular unit. Supports the following strings
(note we ignore any punctuation and space characters as well as any trailing
|
tolerance |
If |
y |
A numeric vector or |
An angle()
vector
arccosine(-1, "degrees")
arcsine(0, "turns")
arctangent(0, "gradians")
arccosecant(-1, "degrees")
arcsecant(1, "degrees")
arccotangent(1, "half-turns")
# `base::atan2(y, x)` computes the angle of the vector from origin to (x, y)
as_angle(as_coord2d(x = 1, y = 1), "degrees")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.