"Source: Text/Ring/RngLoc.text";
"Line: 2501";
"Date: Fri Sep 26 14:29:19 2025";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Ring/RngLoc.text, line: 2501
// Example: H49E16 ()
print "Example: H49E16";
ei := GetEchoInput();
SetEchoInput(true);
R<x> := PolynomialRing(Integers());
K := ext<pAdicField(3, 20) | x^3 + x^2 + x + 2>;
K<d> := ext<K | x^3 + 3*x^2 + 3*x + 3>;
L<b> := IntegerRing(K);
x := 1 + b;
time Log(x);
x := 1 + b^5;
time Log(x);
RelativePrecision(Exp(Log(x)) - x);
assert $1 eq 0;
x := b^2;
time Exp(x);
RelativePrecision(Log(Exp(x)) - x);
assert $1 eq 0;
x := b^6;
time Exp(x);
RelativePrecision(Log(Exp(x)) - x);
assert $1 eq 0;
SetEchoInput(ei);
