Skip to contents

Element-wise \(\sin(x) / x\) function on numeric or complex vectors (or objects which can be coerced to them).

Usage

# S3 method for default
sinxdivx(x)

Arguments

x

numeric or complex vectors or objects which can be coerced to such.

Value

Vector or array containing the values of sin(x)/x.

Details

See base::sin(), base::Arithmetic for details about the sine function and division operation.

Note: by convention sinxdivx(0) returns 1.

Author

Chloe Serre-Combe, Amelie Vernay

Examples

sinxdivx(pi)
#> [1] 3.898172e-17
sinxdivx(1:10)
#>  [1]  0.84147098  0.45464871  0.04704000 -0.18920062 -0.19178485 -0.04656925
#>  [7]  0.09385523  0.12366978  0.04579094 -0.05440211