Macaulay2 » Documentation
Packages » Padic » PadicNumber » interval(PadicNumber,PadicNumber)
next | previous | forward | backward | up | index | toc

interval(PadicNumber,PadicNumber) -- convert p-adic numbers to a real interval

Description

Converts a $p$-adic number to a real interval by first lifting to QQ. When two arguments are given, returns the interval with those endpoints.

i1 : interval QQ_7 5

o1 = [5,5]

o1 : RRi (of precision 53)
i2 : interval(QQ_7 5, QQ_7 6)

o2 = [5,6]

o2 : RRi (of precision 53)
i3 : interval(QQ_7 5, 6)

o3 = [5,6]

o3 : RRi (of precision 53)
i4 : interval(5, QQ_7 6)

o4 = [5,6]

o4 : RRi (of precision 53)

See also

Ways to use this method:


The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/Padic.m2:1113:0.