Power

Output the power to a base of the input

    Power

Library

Modelica/Blocks/Math

Description

This blocks computes the output y as thepower to the parameter base of the input u.If the boolean parameter useExp is true, the output is determined by:

    y = exp ( u * log (base) )

otherwise:

    y = base ^ u;

Parameters

Power_0

NameLabelDescriptionData TypeValid Values

mo_base

base

Base of power

Scalar

mo_useExp

useExp

Use exp function in implementation

Scalar

true
false

Power_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

See Also