|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
F - a fieldpublic interface Field<F>
This interface represents a field.
As an algebraic structure, every field is a ring, but not every ring is a field. That is, it has the notion of addition, subtraction, multiplication, satisfying certain axioms. The most important difference is that a field allows for division (though not division by zero), while a ring may not possess a multiplicative inverse.
In addition, the multiplication operation in a field is required to be commutative.
| Nested Class Summary | |
|---|---|
static class |
Field.InverseNonExistent
RuntimeException thrown when the inverse of a field element does not exist. |
| Method Summary | |
|---|---|
F |
divide(F that)
/ : F × F → F
That is the same as
this.multiply(that.inverse()) |
F |
inverse()
For each a in F, there exists an element b in F such that
a × b = b × a = 1
That is, it is the object such as
this.multiply(this.inverse()) == this.ONE |
| Methods inherited from interface com.numericalmethod.suanshu.mathstructure.AbelianGroup |
|---|
add, minus, opposite, ZERO |
| Methods inherited from interface com.numericalmethod.suanshu.mathstructure.Monoid |
|---|
multiply, ONE |
| Method Detail |
|---|
F inverse()
throws Field.InverseNonExistent
F, there exists an element b in F such that
a × b = b × a = 1
That is, it is the object such as
this.multiply(this.inverse()) == this.ONE
1 / this if it exists
Field.InverseNonExistent - if the inverse does not existF divide(F that)
/ : F × F → F
That is the same as
this.multiply(that.inverse())
that - the denominator
this / that
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||