orbital.math
Interface Scalar
- All Superinterfaces:
- Arithmetic, Normed
- All Known Subinterfaces:
- Complex, Integer, Rational, Real
public interface Scalar
- extends Arithmetic
Abstraction of all scalar arithmetic number objects.
This class is the base class for all Arithmetic objects of scalar number type.
Scalars usually implement Comparable as well.
Most scalar implementation also tend to extend Number but are not required
to do so, since that would break the freedom of inheriting from another base class.
- Author:
- André Platzer
- Invariants:
- usually this is Comparable || []abnormal(Comparable)
- Stereotype:
- data-type
|
Field Summary |
static Predicate |
isa
Checks whether the given arithmetic object is a number. |
| Methods inherited from interface orbital.math.Arithmetic |
add, divide, equals, inverse, isOne, isZero, minus, multiply, one, power, scale, subtract, toString, zero |
| Methods inherited from interface orbital.math.Normed |
norm |
isa
static final Predicate isa
- Checks whether the given arithmetic object is a number.
return whether v is complex, real, rational or an integer.
Copyright © 1996-2006 André Platzer
All Rights Reserved.