cos.modello_number: Number Cosine

Description Usage Arguments Value Author(s) Examples

Description

Calculates the cosine of a number

Usage

1
2
## S3 method for class 'modello_number'
cos(x)

Arguments

x

a reference object of class 'number'

Value

Returns a reference object of class 'number'

Author(s)

Filippo Monari

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
modello.init(10, 10, 10, 10)
## For sclars
x1 = number(pi, scalar=TRUE)
y1 = cos(x1)
print(y1)
print(y1$v)
## For arrays
x2 = number(matrix(pi, 3, 3))
y2 = cos(x2)
print(y2)
print(y2$v)
modello.close()

modello documentation built on Feb. 2, 2021, 9:06 a.m.