Learn R Programming

rkeops (version 2.2.2)

sinxdivx.default: sin(x)/x function

Description

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)

Value

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

Arguments

x

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

Author

Chloe Serre-Combe, Amelie Vernay

Details

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

Note: by convention sinxdivx(0) returns 1.

See Also

Examples

Run this code
sinxdivx(pi)
sinxdivx(1:10)

Run the code above in your browser using DataLab