|
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 in S-1M = MS.
S-1M := MS := M×S/~ = {a/s ¦ a in M and s in 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 in 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' | |-> | {φ in HomRng1(R,R') ¦ φ(S) subset of (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."| 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, 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 not in 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.2.0: 23 Apr 2008 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||