functionisMonotonic

Returns true if the argument is a monotonic sequence

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

Information

This function returns true if its argument is monotonic increasing or decreasing, and false otherwise. If strict=true, then strict monotonicity is tested, otherwise weak monotonicity is tested.

Inputs

TypeNameDefaultDescription
Real[:]xSequence to be tested
BooleanstrictfalseSet to true to test for strict monotonicity

Outputs

TypeNameDefaultDescription
BooleanmonotonicTrue if x is monotonic increasing or decreasing

Revisions

  • September 28, 2011 by Michael Wetter:
    First implementation.