Struct Result
Struct containing the result of a calculation, along with the absolute error in that calculation (x ± δx).
struct Result(V, E)
;
It is assumed, but not checked, that the error is nonnegative.
Fields
Name | Type | Description |
---|---|---|
error
|
E | Error. |
value
|
V | Result. |
Methods
Name | Description |
---|---|
opBinary
|
Operators for Result-Result arithmetic. |
opOpAssign
|
Operators for Result-Result arithmetic. |
opUnary
|
|
toString
|
Get a string representation of the result. |