# Fraction SΒΆ

Fraction takes an IntegralDomain `S` and produces the domain of Fractions with numerators and denominators from `S`. If `S` is also a GcdDomain, then `gcd``'s` between numerator and denominator will be cancelled during all operations.

0: %

from AbelianMonoid

1: %

from MagmaWithUnit

*: (%, %) -> %

from LeftModule %

*: (%, Fraction Integer) -> %
*: (%, Integer) -> % if S has LinearlyExplicitOver Integer
*: (%, S) -> %

from RightModule S

*: (Fraction Integer, %) -> %
*: (Integer, %) -> %

from AbelianGroup

*: (NonNegativeInteger, %) -> %

from AbelianMonoid

*: (PositiveInteger, %) -> %

from AbelianSemiGroup

*: (S, %) -> %

from LeftModule S

+: (%, %) -> %

from AbelianSemiGroup

-: % -> %

from AbelianGroup

-: (%, %) -> %

from AbelianGroup

/: (%, %) -> %

from Field

/: (S, S) -> %
<=: (%, %) -> Boolean if S has OrderedSet

from PartialOrder

<: (%, %) -> Boolean if S has OrderedSet

from PartialOrder

=: (%, %) -> Boolean

from BasicType

>=: (%, %) -> Boolean if S has OrderedSet

from PartialOrder

>: (%, %) -> Boolean if S has OrderedSet

from PartialOrder

^: (%, Integer) -> %

from DivisionRing

^: (%, NonNegativeInteger) -> %

from MagmaWithUnit

^: (%, PositiveInteger) -> %

from Magma

~=: (%, %) -> Boolean

from BasicType

abs: % -> % if S has OrderedIntegralDomain

from OrderedRing

annihilate?: (%, %) -> Boolean

from Rng

antiCommutator: (%, %) -> %
associates?: (%, %) -> Boolean

from EntireRing

associator: (%, %, %) -> %
ceiling: % -> S if S has IntegerNumberSystem
characteristic: () -> NonNegativeInteger
charthRoot: % -> Union(%, failed) if S has PolynomialFactorizationExplicit and % has CharacteristicNonZero or S has CharacteristicNonZero
coerce: % -> %

from Algebra %

coerce: % -> OutputForm
coerce: Fraction Integer -> %
coerce: Integer -> %
coerce: S -> %

from CoercibleFrom S

coerce: Symbol -> % if S has RetractableTo Symbol
commutator: (%, %) -> %
conditionP: Matrix % -> Union(Vector %, failed) if S has PolynomialFactorizationExplicit and % has CharacteristicNonZero
convert: % -> DoubleFloat if S has RealConstant
convert: % -> Float if S has RealConstant
convert: % -> InputForm if S has ConvertibleTo InputForm
convert: % -> Pattern Float if S has ConvertibleTo Pattern Float
convert: % -> Pattern Integer if S has ConvertibleTo Pattern Integer
D: % -> % if S has DifferentialRing

from DifferentialRing

D: (%, List Symbol) -> % if S has PartialDifferentialRing Symbol
D: (%, List Symbol, List NonNegativeInteger) -> % if S has PartialDifferentialRing Symbol
D: (%, NonNegativeInteger) -> % if S has DifferentialRing

from DifferentialRing

D: (%, S -> S) -> %
D: (%, S -> S, NonNegativeInteger) -> %
D: (%, Symbol) -> % if S has PartialDifferentialRing Symbol
D: (%, Symbol, NonNegativeInteger) -> % if S has PartialDifferentialRing Symbol
denom: % -> S
denominator: % -> %
differentiate: % -> % if S has DifferentialRing

from DifferentialRing

differentiate: (%, List Symbol) -> % if S has PartialDifferentialRing Symbol
differentiate: (%, List Symbol, List NonNegativeInteger) -> % if S has PartialDifferentialRing Symbol
differentiate: (%, NonNegativeInteger) -> % if S has DifferentialRing

from DifferentialRing

differentiate: (%, S -> S) -> %
differentiate: (%, S -> S, NonNegativeInteger) -> %
differentiate: (%, Symbol) -> % if S has PartialDifferentialRing Symbol
differentiate: (%, Symbol, NonNegativeInteger) -> % if S has PartialDifferentialRing Symbol
divide: (%, %) -> Record(quotient: %, remainder: %)

from EuclideanDomain

elt: (%, S) -> % if S has Eltable(S, S)

from Eltable(S, %)

euclideanSize: % -> NonNegativeInteger

from EuclideanDomain

eval: (%, Equation S) -> % if S has Evalable S

from Evalable S

eval: (%, List Equation S) -> % if S has Evalable S

from Evalable S

eval: (%, List S, List S) -> % if S has Evalable S

from InnerEvalable(S, S)

eval: (%, List Symbol, List S) -> % if S has InnerEvalable(Symbol, S)

from InnerEvalable(Symbol, S)

eval: (%, S, S) -> % if S has Evalable S

from InnerEvalable(S, S)

eval: (%, Symbol, S) -> % if S has InnerEvalable(Symbol, S)

from InnerEvalable(Symbol, S)

expressIdealMember: (List %, %) -> Union(List %, failed)
exquo: (%, %) -> Union(%, failed)

from EntireRing

extendedEuclidean: (%, %) -> Record(coef1: %, coef2: %, generator: %)

from EuclideanDomain

extendedEuclidean: (%, %, %) -> Union(Record(coef1: %, coef2: %), failed)

from EuclideanDomain

factor: % -> Factored %
factorFraction: % -> Fraction Factored S if S has UniqueFactorizationDomain

`factorFraction(r)` factors the numerator and the denominator of the fraction `r`.

factorPolynomial: SparseUnivariatePolynomial % -> Factored SparseUnivariatePolynomial % if S has PolynomialFactorizationExplicit
factorSquareFreePolynomial: SparseUnivariatePolynomial % -> Factored SparseUnivariatePolynomial % if S has PolynomialFactorizationExplicit
floor: % -> S if S has IntegerNumberSystem
fractionPart: % -> % if S has EuclideanDomain
gcd: (%, %) -> %

from GcdDomain

gcd: List % -> %

from GcdDomain

gcdPolynomial: (SparseUnivariatePolynomial %, SparseUnivariatePolynomial %) -> SparseUnivariatePolynomial %
hash: % -> SingleInteger if S has Hashable

from Hashable

hashUpdate!: (HashState, %) -> HashState if S has Hashable

from Hashable

init: % if S has StepThrough

from StepThrough

inv: % -> %

from DivisionRing

latex: % -> String

from SetCategory

lcm: (%, %) -> %

from GcdDomain

lcm: List % -> %

from GcdDomain

lcmCoef: (%, %) -> Record(llcm_res: %, coeff1: %, coeff2: %)

from LeftOreRing

leftPower: (%, NonNegativeInteger) -> %

from MagmaWithUnit

leftPower: (%, PositiveInteger) -> %

from Magma

leftRecip: % -> Union(%, failed)

from MagmaWithUnit

map: (S -> S, %) -> %

from FullyEvalableOver S

max: (%, %) -> % if S has OrderedSet

from OrderedSet

min: (%, %) -> % if S has OrderedSet

from OrderedSet

multiEuclidean: (List %, %) -> Union(List %, failed)

from EuclideanDomain

negative?: % -> Boolean if S has OrderedIntegralDomain

from OrderedRing

nextItem: % -> Union(%, failed) if S has StepThrough

from StepThrough

numer: % -> S
numerator: % -> %
OMwrite: % -> String if S has OpenMath and S has IntegerNumberSystem

from OpenMath

OMwrite: (%, Boolean) -> String if S has OpenMath and S has IntegerNumberSystem

from OpenMath

OMwrite: (OpenMathDevice, %) -> Void if S has OpenMath and S has IntegerNumberSystem

from OpenMath

OMwrite: (OpenMathDevice, %, Boolean) -> Void if S has OpenMath and S has IntegerNumberSystem

from OpenMath

one?: % -> Boolean

from MagmaWithUnit

opposite?: (%, %) -> Boolean

from AbelianMonoid

patternMatch: (%, Pattern Float, PatternMatchResult(Float, %)) -> PatternMatchResult(Float, %) if S has PatternMatchable Float
patternMatch: (%, Pattern Integer, PatternMatchResult(Integer, %)) -> PatternMatchResult(Integer, %) if S has PatternMatchable Integer
plenaryPower: (%, PositiveInteger) -> %
positive?: % -> Boolean if S has OrderedIntegralDomain

from OrderedRing

prime?: % -> Boolean
principalIdeal: List % -> Record(coef: List %, generator: %)
quo: (%, %) -> %

from EuclideanDomain

recip: % -> Union(%, failed)

from MagmaWithUnit

reducedSystem: (Matrix %, Vector %) -> Record(mat: Matrix Integer, vec: Vector Integer) if S has LinearlyExplicitOver Integer
reducedSystem: (Matrix %, Vector %) -> Record(mat: Matrix S, vec: Vector S)

from LinearlyExplicitOver S

reducedSystem: Matrix % -> Matrix Integer if S has LinearlyExplicitOver Integer
reducedSystem: Matrix % -> Matrix S

from LinearlyExplicitOver S

rem: (%, %) -> %

from EuclideanDomain

retract: % -> Fraction Integer if S has RetractableTo Integer
retract: % -> Integer if S has RetractableTo Integer
retract: % -> S

from RetractableTo S

retract: % -> Symbol if S has RetractableTo Symbol
retractIfCan: % -> Union(Fraction Integer, failed) if S has RetractableTo Integer
retractIfCan: % -> Union(Integer, failed) if S has RetractableTo Integer
retractIfCan: % -> Union(S, failed)

from RetractableTo S

retractIfCan: % -> Union(Symbol, failed) if S has RetractableTo Symbol
rightPower: (%, NonNegativeInteger) -> %

from MagmaWithUnit

rightPower: (%, PositiveInteger) -> %

from Magma

rightRecip: % -> Union(%, failed)

from MagmaWithUnit

sample: %

from AbelianMonoid

sign: % -> Integer if S has OrderedIntegralDomain

from OrderedRing

sizeLess?: (%, %) -> Boolean

from EuclideanDomain

smaller?: (%, %) -> Boolean if S has Comparable

from Comparable

solveLinearPolynomialEquation: (List SparseUnivariatePolynomial %, SparseUnivariatePolynomial %) -> Union(List SparseUnivariatePolynomial %, failed) if S has PolynomialFactorizationExplicit
squareFree: % -> Factored %
squareFreePart: % -> %
squareFreePolynomial: SparseUnivariatePolynomial % -> Factored SparseUnivariatePolynomial % if S has PolynomialFactorizationExplicit
subtractIfCan: (%, %) -> Union(%, failed)
unit?: % -> Boolean

from EntireRing

unitCanonical: % -> %

from EntireRing

unitNormal: % -> Record(unit: %, canonical: %, associate: %)

from EntireRing

wholePart: % -> S if S has EuclideanDomain
zero?: % -> Boolean

from AbelianMonoid

AbelianGroup

AbelianMonoid

AbelianSemiGroup

BasicType

BiModule(%, %)

BiModule(S, S)

CancellationAbelianMonoid

Canonical if S has Canonical and S has GcdDomain and S has canonicalUnitNormal

canonicalsClosed

canonicalUnitNormal

CommutativeRing

CommutativeStar

Comparable if S has Comparable

ConvertibleTo Float if S has RealConstant

DifferentialRing if S has DifferentialRing

DivisionRing

Eltable(S, %) if S has Eltable(S, S)

EntireRing

EuclideanDomain

Evalable S if S has Evalable S

Field

GcdDomain

Hashable if S has Hashable

InnerEvalable(S, S) if S has Evalable S

InnerEvalable(Symbol, S) if S has InnerEvalable(Symbol, S)

IntegralDomain

LeftOreRing

Magma

MagmaWithUnit

Monoid

NonAssociativeRing

NonAssociativeRng

NonAssociativeSemiRing

NonAssociativeSemiRng

noZeroDivisors

OpenMath if S has OpenMath and S has IntegerNumberSystem

OrderedRing if S has OrderedIntegralDomain

OrderedSet if S has OrderedSet

PartialOrder if S has OrderedSet

PrincipalIdealDomain

RealConstant if S has RealConstant

Ring

Rng

SemiGroup

SemiRing

SemiRng

SetCategory

StepThrough if S has StepThrough

TwoSidedRecip

UniqueFactorizationDomain

unitsKnown