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

NameTypeDescription
error EError.
value VResult.

Methods

NameDescription
opBinary Operators for Result-Result arithmetic.
opOpAssign Operators for Result-Result arithmetic.
opUnary
toString Get a string representation of the result.