Macaulay2 » Documentation
Packages » Padic » PadicNumber » PadicNumber * PadicNumber
next | previous | forward | backward | up | index | toc

PadicNumber * PadicNumber -- multiply p-adic numbers

Description

Multiply two $p$-adic numbers.

i1 : QQ_7 3 * QQ_7 5

o1 = 1 + 2*7^1

o1 : QQ  (of precision 20)
       7

If one of the arguments is an ordinary number, it is first promoted to the appropriate $p$-adic field.

i2 : QQ_7 3 * 5

o2 = 1 + 2*7^1

o2 : QQ  (of precision 20)
       7
i3 : 4 * QQ_7 3

o3 = 5 + 1*7^1

o3 : QQ  (of precision 20)
       7

See also

Menu

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:671:0.