Learn R Programming

rkeops (version 2.2.2)

sin: Element-wise sine operation.

Description

Symbolic element-wise sine operation for LazyTensor objects or standard element-wise sine operation otherwise.

Usage

sin(x)

Value

See value of sin.default() or sin.LazyTensor().

Arguments

x

input for sin.default() or sin.LazyTensor().

Author

Chloe Serre-Combe, Amelie Vernay

Details

If x is a LazyTensor, see sin.LazyTensor(), else see sin.default().

See Also

sin.default(), sin.LazyTensor()

Examples

Run this code
if (FALSE) {
# R base operation
sin(0)
sin(pi)
# LazyTensor symbolic element-wise sine
x <- matrix(runif(150 * 3), 150, 3) # arbitrary R matrix, 150 rows, 3 columns
x_i <- LazyTensor(x, index = 'i')   # creating LazyTensor from matrix x, 
                                    # indexed by 'i'
Sin_x <- sin(x_i)                   # symbolic matrix, 150 rows and 3 columns
}

Run the code above in your browser using DataLab