.BusinessSimulation.Converters.Division_Guarded

Information

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

The output y is obtained by guarded division of the nominator input u1 and the denominator input u2:

y = u1/u2

If u2 is equal to zero, then outputIfZero is returned.

Implementation

y = if noEvent(u2 < 0 or u2 > 0) then u1 / u2 else outputIfZero;

See also

Division


Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos