Equation Module
Creates, inspects and solves an equation whose first variable is the product or the sum of the other variables.
Nested modules
| Modules | Description |
|
Holds the Dto of an equation and converts an equation to and from the Dto. Raises a solver exception for an empty variable list or duplicate variables. |
|
|
Writes a solve result as text: unchanged, the changed variables with the changed properties, or the errors. |
Functions and values
| Function or value |
Description
|
||
Full Usage:
check onlyMinIncrMax eq
Parameters:
bool
-
Only calculate min/incr/max
eq : Equation
-
The equation
Returns: bool
|
Check whether an equation is valid
|
||
|
|||
Full Usage:
count onlyMinMax eq
Parameters:
bool
-
Whether only min max is used
eq : Equation
-
The equation
Returns: int
|
Get the count of
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
True when a sum equation holds variables with a known unit in more than one unit group, so the values cannot be added. A variable without a unit, or with the dimensionless zero unit, matches any unit, as in the addition of two value units. A product equation is never a mismatch, as any two units can be multiplied or divided.
|
||
Check whether an
|
|||
|
Check whether an equation will change by calc
This is different from
|
||
|
|||
Check whether an
|
|||
|
|||
|
|||
Full Usage:
solve onlyMinIncrMax log eq
Parameters:
bool
-
Calculate only Min, Incr and Max if true
log : Logger
-
The logger to log solving steps
eq : Equation
-
The equation
Returns: Equation * SolveResult
The resulting equation and the changed variables
|
Solve an equation eq and return the resulting eq with the variables that were changed as a SolveResult
|
||
|
|||
|
|||
GenPRES