Learn R Programming

rkeops (version 2.2.2)

acos: Element-wise arc-cosine operation.

Description

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

Usage

acos(x)

Value

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

Arguments

x

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

Author

Chloe Serre-Combe, Amelie Vernay

Details

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

See Also

acos.default(), acos.LazyTensor()

Examples

Run this code
if (FALSE) {
# R base operation
acos(0)
acos(-1)
# LazyTensor symbolic element-wise arc-cosine
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'
Acos_x <- acos(x_i)                 # symbolic matrix, 150 rows and 3 columns
}

Run the code above in your browser using DataLab