public abstract static class Value.Cts extends Value.Atomic
Value.Atomic, Value.Bool, Value.Char, Value.Chars, Value.Cts, Value.Defer, Value.Discrete, Value.Enum, Value.Inc_Or, Value.Int, Value.Lambda, Value.List, Value.Maybe, Value.Option, Value.Real, Value.Scannable, Value.Structured, Value.Triv, Value.Tuple
Constructor and Description |
---|
Cts() |
Modifier and Type | Method and Description |
---|---|
abstract double |
AoM()
The Accuracy of Measurement (AoM),
as in 3.14 to the nearest 0.01, say. |
Value |
bOp(int op,
Value rgt)
Apply the binary operator 'op' to 'this', and 'rgt', Cts.
|
double |
nlAoM()
The negative log
AoM() of 'this' Cts. |
java.lang.String |
toString()
Return a String representation of 'this' Cts Value.
|
Type |
type()
Return the
Type of 'this' Value. |
Value |
uOp(int op)
Apply the unary operator, 'op', i.e., '+' or '-', to 'this' Cts.
|
abstract double |
x()
Return the
double corresponding to 'this' Cts. |
public abstract double x()
double
corresponding to 'this' Cts.public abstract double AoM()
x()
±(AoM()/2),
as in 3.14 to the nearest 0.01, say. Incidentally, the
"expected |error|", the distance from x() to the "true" Value,
is AoM/4.public Value uOp(int op)
Value.Int.uOp(int)
and Lexical
.public Value bOp(int op, Value rgt)