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
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:] | x | Sequence to be tested | |
| Boolean | strict | false | Set to true to test for strict monotonicity |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | monotonic | True if x is monotonic increasing or decreasing |
Revisions
-
September 28, 2011 by Michael Wetter:
First implementation.