functiondiv0protect
Division avoiding 0 by replacing b with eps if requried
Extends from Modelica.Icons.Function (Icon for functions).
Information
This function computes c=a/b. It avoids divisions by zero by replacing
a/b with a/eps or a/b whichever of the divisors is larger.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | a | Dividend | |
| Real | b | Divisor |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | c | Quotient |