Learn R Programming

modello (version 0.1.1)

log.modello_number: Number Log

Description

Calculates the logarithm of a number

Usage

# S3 method for modello_number
log(x, base = NULL)

Arguments

x

a reference object of class 'number'

base

ignored, for compatibility with the generic function

Value

Returns a reference object of class 'number'

Examples

Run this code
# NOT RUN {
modello.init(10, 10, 10, 10)
## For sclars
x1 = number(3, scalar=TRUE)
y1 = log(x1)
print(y1)
print(y1$v)
## For arrays
x2 = number(matrix(3, 3, 3))
y2 = log(x2)
print(y2)
print(y2$v)
modello.close()
# }

Run the code above in your browser using DataLab