.BusinessSimulation.Functions.notZeroQ

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

The function returns false if the real input x is zero and true in all other cases.

Syntax

Functions.notZeroQ(x)

Examples


import BusinessSimulation.Constants.small;
Functions.notZeroQ(0.0); // false
Functions.notZeroQ(1.2); // true
Functions.notZeroQ(-5); // true
Functions.notZeroQ(small); // true

Notes

This functions is somewhat like an "inverse" Boole.

See also

Boole

Interface

function notZeroQ
  extends BusinessSimulation.Icons.Function;
  input Real x "Real input";
  output Boolean y "Boolean output";
end notZeroQ;

Revisions


Generated at 2024-12-21T19:25:56Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos