functionregPow
Anti-symmetric power approximation with non-zero derivative in the origin
Extends from Modelica.Icons.Function (Icon for functions).
Information
This function approximates abs(x)^a*sign(x), such that the derivative is positive, finite and smooth in x=0.
| Function | Approximation | Range |
|---|---|---|
| y = regPow(x) | y ~= abs(x)^a*sgn(x) | abs(x) >>delta |
| y = regPow(x) | y ~= x*delta^(a-1) | abs(x) << delta |
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | ||
| Real | a | ||
| Real | delta | 0.01 | Range of significant deviation from x^a*sgn(x) |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y |
Revisions
- 15 Mar 2005
by Francesco Casella:
Created.