Log

Output the logarithm (default base e) of the input (input > 0 required)

    Log

Library

Modelica/Blocks/Math

Description

This blocks computes the output y as thelogarithm to the parameter base of the input u:

    y = log( u ) / log( base );

An error occurs if the input u iszero or negative.

log.png

Parameters

Log_0

NameLabelDescriptionData TypeValid Values

mo_base

base

Base of logarithm

Scalar

Log_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

Connector of Real input signal

input

1

y

implicit

Connector of Real output signal

output

1