next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc :: commonRing

commonRing -- find smallest containing ring

Synopsis

Description

i1 : commonRing {1,2/3}

o1 = QQ

o1 : Ring
i2 : commonRing {1,2.}

o2 = RR
       53

o2 : RealField
i3 : commonRing {1,2p100,matrix{{3p200}}}

o3 = RR
       100

o3 : RealField
i4 : R = RR[x];
i5 : commonRing {1,2p100,matrix{{3p200}},0_R}

o5 = R

o5 : PolynomialRing

Ways to use commonRing :

For the programmer

The object commonRing is a method function.