modelExtendedPolynomialDerivativeCheck

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
Realc{0.1162, 1.5404, -1.4825, 0.7664, -0.1971}Polynomial coefficients
RealxMin1Minimum x value for polynomial
RealxMax2Maximum x value for polynomial

Components

TypeNameDefaultDescription
Realx
Realy

Revisions

  • March 23, 2011 by Michael Wetter:
    Changed order of argument list to make x the first argument.
  • April 14, 2008, by Michael Wetter:
    First implementation.