slash-.modello_number: Number Division

Description Usage Arguments Value Author(s) Examples

Description

Divides a number by another.

Usage

1
2
## S3 method for class 'modello_number'
e1 / e2

Arguments

e1

a reference object of class 'number'

e2

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
13
14
15
16
17
18
modello.init(10, 10, 10, 10)
## Scalar / scalar
x1 = number(1, scalar=TRUE)
x2 = number(2, scalar=TRUE)
x3 = x1 / x2
print(x3)
print(x3$v)
## Array / scalar
x4 = number(matrix(2, 2, 2))
x5 = x1 / x4
print(x5)
print(x5$v)
##Array / array
x6 = number(c(2, 1))
x7 = x4 / x6
print(x7)
print(x7$v)
modello.close()

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