functionregRoot2_utility

Interpolating with two 3-order polynomials with a prescribed derivative at x=0

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

TypeNameDefaultDescription
Realx
Realx1Approximation of function abs(x) < x1
Realk1y = if x>=0 then sqrt(k1*x) else -sqrt(k2*|x|); k1 >= k2
Realk2y = if x>=0 then sqrt(k1*x) else -sqrt(k2*|x|))
Booleanuse_yd0= true, if yd0 shall be used
Realyd0Desired derivative at x=0: dy/dx = yd0

Outputs

TypeNameDefaultDescription
Realy