functionregSquare2_utility
Interpolating with two 3-order polynomials with a prescribed derivative at x=0
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | ||
| Real | x1 | Approximation of function abs(x) < x1 | |
| Real | k1 | y = (if x>=0 then k1 else -k2)*x*|x|; k1 >= k2 | |
| Real | k2 | y = (if x>=0 then k1 else -k2)*x*|x| | |
| Boolean | use_yd0 | false | = true, if yd0 shall be used |
| Real | yd0 | 1 | Desired derivative at x=0: dy/dx = yd0 |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y |