sind: Sine (in degrees) [GNU Octave/MATLAB compatible]

Description Usage Arguments Value Author(s) References Examples

Description

Calculates the value of sine for each element of x in degrees in a manner compatible with GNU Octave/MATLAB. Zero is returned for any "elements where x / 180 is an integer." Source: Eaton.

Usage

1
sind(x)

Arguments

x

A numeric vector containing values in degrees

Value

The sine of each element of x in degrees. Zero for any "elements where x / 180 is an integer."

Author(s)

David Bateman (GNU Octave sind), Irucka Embry

References

John W. Eaton, David Bateman, and Søren Hauberg (2009). GNU Octave version 3.0.1 manual: a high-level interactive language for numerical computations. CreateSpace Independent Publishing Platform. ISBN 1441413006, URL http://www.gnu.org/software/octave/doc/interpreter/. Page 358.

Examples

1
2
3
4
5
6
7
8
library("iemisc")

# Examples from GNU Octave sind
sind(seq(10, 90, by = 10))

sind(c(0, 180, 360))

sind(c(90, 270))

iemisc documentation built on Aug. 2, 2020, 9:07 a.m.