Annex60.Utilities.Math.Functions.isMonotonic

# .Annex60.Utilities.Math.Functions.isMonotonic

Returns true if the argument is a monotonic sequence

## 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.

#### Interface

>     function isMonotonic
>       input Real x[:] "Sequence to be tested";
>       input Boolean strict = false "Set to true to test for strict monotonicity";
>       output Boolean monotonic "True if x is monotonic increasing or decreasing";
>     end isMonotonic;

## Revisions

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

Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos