impure functionwarnIfPerformanceOutOfBounds

Function that checks the performance and writes a warning if it is outside of 0.9 to 1.1

Information

This function checks if the numeric argument is outside of the interval 0.9 to 1.1. If this is the case, the function writes a warning.

Inputs

TypeNameDefaultDescription
RealxArgument to be checked
StringmsgString to be added to warning message
StringcurveNameName of the curve that was tested

Outputs

TypeNameDefaultDescription
IntegerretVal0 if x is inside bounds, -1 if it is below bounds, or +1 if it is above bounds

Revisions

  • December 12, 2021, by Michael Wetter:
    Added impure keyword for MSL 4.0.0.
  • September 12, 2010 by Michael Wetter:
    First implementation.