Trig

0th

Percentile

Trig functions

Trig functons as per the Gnu Scientific Library, section 7.30

Keywords
array
Usage
gsl_sf_sin(x, give=FALSE, strict=TRUE)
gsl_sf_cos(x, give=FALSE, strict=TRUE)
Arguments
x
input: real values
give
Boolean with TRUE meaning to return a list of three items: the value, an estimate of the error, and a status number.
strict
Boolean, with TRUE meaning to return NaN if status is an error.
Aliases
  • Trig
  • gsl_sf_sin
  • gsl_sf_cos
Examples
x <- seq(from=0,to=2,by=0.01)
gsl_sf_sin(x)   #table xx of Ab and St
gsl_sf_cos(x)   #table xx of Ab and St

f <- function(x){abs(sin(x+1)-sin(x)*cos(1)-cos(x)*sin(1))}
g <-
function(x){abs(gsl_sf_sin(x+1)-gsl_sf_sin(x)*gsl_sf_cos(1)-gsl_sf_cos(x)*gsl_sf_sin(1))}

f(100000:100010)
g(100000:100010)
Documentation reproduced from package gsl, version 1.2-20, License: GPL

Community examples

Looks like there are no examples yet.