P-Adic numbers, basic: Difference between revisions
Content added Content deleted
Line 1,096: | Line 1,096: | ||
=={{header|Julia}}== |
=={{header|Julia}}== |
||
Uses the Nemo abstract algebra library. The Nemo library's rational reconstruction function gives up quite easily, |
Uses the Nemo abstract algebra library. The Nemo library's rational reconstruction function gives up quite easily, |
||
so another alternative to FreeBasic's crat() using |
so another alternative to FreeBasic's crat() using vector products is below. |
||
<lang Julia>using Nemo, LinearAlgebra |
<lang Julia>using Nemo, LinearAlgebra |
||
import Base.Rational, Base.digits |
import Base.Rational, Base.digits |
||
Line 1,306: | Line 1,306: | ||
6 6 4 2 1 2 1 6 2 1 3 -25145//36122 |
6 6 4 2 1 2 1 6 2 1 3 -25145//36122 |
||
</pre> |
</pre> |
||
=={{header|Phix}}== |
=={{header|Phix}}== |