Division_Guarded

Division guarded for division by zero

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

Parameters (1)

outputIfZero

Value: 0

Type: OutputType

Description: Output, if denominator (u2) is zero (default = 0)

Connectors (3)

y

Type: RealOutput

Description: Output signal

u1

Type: RealInput

Description: Nominator input

u2

Type: RealInput

Description: Denominator input

Used in Components (11)

AccumulatedPerformance

BusinessSimulation.Examples.SoftwareReleaseProject

Weighted average performance per period

Elasticity

BusinessSimulation.CausalLoop

Fractional rate of change is proportional to that of the influencing stock

LogisticGrowth

BusinessSimulation.SourcesOrSinks

Logistic growth model

Smooth

BusinessSimulation.Converters.DiscreteDelay

First-order exponential smooth

AsymmetricSmooth

BusinessSimulation.Converters.DiscreteDelay

A smooth with different delay times for positive and negative changes

DmnlInput

BusinessSimulation.Converters

Input u will be stated as dimensionless fraction with regard to a reference value

PolynomialFunctionDivisor

BusinessSimulation.Converters

Input is divided by polynomial function of lambda

SoftMin

BusinessSimulation.Converters

Gradual approach of a ceiling that cannot be exceeded

ResidenceTime

BusinessSimulation.MoleculesOfStructure.InformationProcessing

Calculate average time of residence or time needed for completion

Trend

BusinessSimulation.MoleculesOfStructure.InformationProcessing

Calculating a fractional rate of change to be used in forecasting

CloseGap

BusinessSimulation.MoleculesOfStructure.Policy

Determine the rate of flow (action) to close a gap between a quantity and its desired value