Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

arcs

Convert and reduce arcs


Description

Functions for conversions and reduction of arcs.

Usage

deg( radian )
rad( degree )
reda( U, ref )
reda2(U, V, ref )

Arguments

U,V,ref,radian,degree

Real

Details

deg Convert radians to degrees.
rad Convert degrees to radians.
reda Add or subtract multiples of ref to make abs(U) < ref/2.
reda2 Subtract from U and V the greatest multiple of ref, so that 0 <= min {U_{new}, V_{new}} < ref.

Author(s)

Christian W. Hoffmann <christian@echoffmann.ch>

Examples

deg(pi/2)  # 90
rad(180)  #  3.141593
reda(580,360) # -140
reda2(200,120,70) # 130, 50
reda2(100,-200,70) # 310, 10

cwhmisc

Miscellaneous Functions for Math, Plotting, Printing, Statistics, Strings, and Tools

v6.6
GPL (>= 2)
Authors
Christian W. Hoffmann
Initial release
2018-08-24, 10:40:10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.