.Buildings.Utilities.Math.Functions.isMonotonic

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
  extends Modelica.Icons.Function;
  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


Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos