TrigFunctions: Trigonometric functions

21-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 Aug. 23, 2026, 5:10 p.m.

Related to TrigFunctions in MPCR...