https://github.com/cran/pracma
Revision 26e049d70b4a1c237987e260cba68f6a9413736c authored by Hans W. Borchers on 09 April 2019, 04:10:07 UTC, committed by cran-robot on 09 April 2019, 04:10:07 UTC
1 parent bf07673
Raw File
Tip revision: 26e049d70b4a1c237987e260cba68f6a9413736c authored by Hans W. Borchers on 09 April 2019, 04:10:07 UTC
version 2.2.5
Tip revision: 26e049d
deg2rad.Rd
\name{deg2rad}
\alias{deg2rad}
\alias{rad2deg}
\title{Degrees to Radians}
\description{
  Transforms between angles in degrees and radians.
}
\usage{
deg2rad(deg)
rad2deg(rad)
}
\arguments{
  \item{deg}{(array of) angles in degrees.}
  \item{rad}{(array of) angles in radians.}
}
\details{
  This is a simple calculation back and forth. Note that angles greater than
  360 degrees are allowed and will be returned. This may appear incorrect but
  follows a corresponding discussion on Matlab Central.
}
\value{
  The angle in degrees or radians.
}
\examples{
deg2rad(c(0, 10, 20, 30, 40, 50, 60, 70, 80, 90))
rad2deg(seq(-pi/2, pi/2, length = 19))
}
\keyword{math}
back to top