.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-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos