Division_GuardedDivision guarded for division by zero |
![]() |
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.
y = if noEvent(u2 < 0 or u2 > 0) then u1 / u2 else outputIfZero;
outputIfZero |
Value: 0 Type: OutputType Description: Output, if denominator (u2) is zero (default = 0) |
---|
![]() |
y |
Type: RealOutput Description: Output signal |
---|---|---|
![]() |
u1 |
Type: RealInput Description: Nominator input |
![]() |
u2 |
Type: RealInput Description: Denominator input |
![]() |
BusinessSimulation.Examples.SoftwareReleaseProject Weighted average performance per period |
![]() |
BusinessSimulation.CausalLoop Fractional rate of change is proportional to that of the influencing stock |
![]() |
BusinessSimulation.SourcesOrSinks Logistic growth model |
![]() |
BusinessSimulation.Converters.DiscreteDelay First-order exponential smooth |
![]() |
BusinessSimulation.Converters.DiscreteDelay A smooth with different delay times for positive and negative changes |
![]() |
BusinessSimulation.Converters Input u will be stated as dimensionless fraction with regard to a reference value |
![]() |
BusinessSimulation.Converters Input is divided by polynomial function of lambda |
![]() |
BusinessSimulation.Converters Gradual approach of a ceiling that cannot be exceeded |
![]() |
BusinessSimulation.MoleculesOfStructure.InformationProcessing Calculate average time of residence or time needed for completion |
![]() |
BusinessSimulation.MoleculesOfStructure.InformationProcessing Calculating a fractional rate of change to be used in forecasting |
![]() |
BusinessSimulation.MoleculesOfStructure.Policy Determine the rate of flow (action) to close a gap between a quantity and its desired value |