functionregRoot2_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 sqrt(k1*x) else -sqrt(k2*|x|); k1 >= k2 | |
| Real | k2 | y = if x>=0 then sqrt(k1*x) else -sqrt(k2*|x|)) | |
| Boolean | use_yd0 | = true, if yd0 shall be used | |
| Real | yd0 | Desired derivative at x=0: dy/dx = yd0 |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y |