regPow

Anti-symmetric power approximation with non-zero derivative in the origin

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

This function approximates abs(x)^a*sign(x), such that the derivative is positive, finite and smooth in x=0.

FunctionApproximationRange
y = regPow(x)y ~= abs(x)^a*sgn(x)abs(x) >>delta
y = regPow(x)y ~= x*delta^(a-1)abs(x) << delta

Syntax

y = regPow(x, a, delta)

Inputs (3)

x

Type: Real

a

Type: Real

delta

Default Value: 0.01

Type: Real

Description: Range of significant deviation from x^a*sgn(x)

Outputs (1)

y

Type: Real