|
Orbital library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Fraction
Representation of a fraction a⁄s ∈ S-1M = MS.
S-1M := MS := M×S/~ = {a⁄s ¦ a∈M ∧ s∈S} with congruence relation ~ defined by
Especially, for an integrity domain R, Quot(R) := R(0) = (R∖{0})-1R is the
field of fractions of R, and for R-modules M, MR∖{0} is a Quot(R)-vector space.
If the underlying integrity domain R has an order, its field of fractions supports
a unique order that restricts to the order on R (an extends Comparable).
A fraction a⁄s ∈ S-1M with numerator a and denominator s is usually written as
a
s
There is the canonical embedding homomorphism ιS:a↦a⁄1 which is injective if and only if S does not contain zero divisors. The ring of fractions RSis the presenting object of the presentable functor
| Rng1 | → | Ens |
| R' | ↦ | {φ∈HomRng1(R,R') ¦ φ(S)⊆(R')×} |
For R-modules M and S≤(R,⋅) it is
ValueFactory.fraction(Arithmetic,Arithmetic),
"N. Bourbaki, Algebra I.2.4: Monoid of fractions of a commutative monoid.",
"N. Bourbaki, Algebra VI.2.2: Ordered fields."| Field Summary |
|---|
| Fields inherited from interface orbital.math.Arithmetic |
|---|
numerical |
| Method Summary | |
|---|---|
Fraction |
add(Fraction bt)
Adds two fractions returning a third as a result. |
Arithmetic |
denominator()
Returns the denominator component. |
Fraction |
divide(Fraction bt)
Divides two fractions returning a third as a result. |
Fraction |
multiply(Fraction bt)
Multiplies two fractions returning a third as a result. |
Arithmetic |
numerator()
Returns the numerator component. |
Arithmetic |
scale(Arithmetic alpha)
Multiplies a scalar with this arithmetic object returning the result. |
Fraction |
subtract(Fraction bt)
Subtracts two fractions returning a third as a result. |
| Methods inherited from interface orbital.math.Arithmetic |
|---|
add, divide, equals, inverse, isOne, isZero, minus, multiply, one, power, subtract, toString, valueFactory, zero |
| Methods inherited from interface orbital.math.Normed |
|---|
norm |
| Method Detail |
|---|
Arithmetic numerator()
Arithmetic denominator()
Fraction add(Fraction bt)
Fraction subtract(Fraction bt)
Fraction multiply(Fraction bt)
Fraction divide(Fraction bt)
java.lang.ArithmeticException - if b∉S and b is not invertible.Arithmetic scale(Arithmetic alpha)
scale in interface Arithmeticalpha - the factor α to scale this arithmetic object with (per law of action of scalar multiplication).
Arithmetic.multiply(Arithmetic)
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||