functionregSquare2_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 k1 else -k2)*x*|x|; k1 >= k2
Realk2y = (if x>=0 then k1 else -k2)*x*|x|
Booleanuse_yd0false= true, if yd0 shall be used
Realyd01Desired derivative at x=0: dy/dx = yd0

Outputs

TypeNameDefaultDescription
Realy