modelRegNonZeroPowerDerivativeCheck

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example checks whether the function derivative is implemented correctly. If the derivative implementation is not correct, the model will stop with an assert statement.

Parameters

TypeNameDefaultDescription
Realn0.33Exponent
Realdelta0.1Abscissa value where transition occurs

Components

TypeNameDefaultDescription
Realx
Realy

Revisions

  • August 17, 2015 by Michael Wetter:
    Updated regression test to have slope that is different from one. This is for issue 303.
  • April 14, 2008, by Michael Wetter:
    First implementation.