TrigFunctions: Trigonometric functions

22-TrigR Documentation

Trigonometric functions

Description

Basic trig functions.

Usage

## S4 method for signature 'Rcpp_MPCR'
sin(x)

## S4 method for signature 'Rcpp_MPCR'
cos(x)

## S4 method for signature 'Rcpp_MPCR'
tan(x)

## S4 method for signature 'Rcpp_MPCR'
asin(x)

## S4 method for signature 'Rcpp_MPCR'
acos(x)

## S4 method for signature 'Rcpp_MPCR'
atan(x)

Arguments

x

An MPCR object.

Value

An MPCR object of the same dimensions as the input.

Examples


library(MPCR)

mpcr_matrix <- as.MPCR(1:20,nrow=2,ncol=10,"single")
x <- sin(mpcr_matrix)


MPCR documentation built on April 13, 2025, 5:08 p.m.