________________________________________
From: sage-s...@googlegroups.com <sage-s...@googlegroups.com> on behalf of Dima Pasechnik <dim...@gmail.com>
Sent: Wednesday, March 5, 2025 3:38 PM
To: sage-s...@googlegroups.com
Subject: Re: [sage-support] Bug Polynomial Quotient with 2 ideal generator rings over RR lose precision of base ring.
HTH
Dima
--
You received this message because you are subscribed to a topic in the Google Groups "sage-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-support/gbBYEbxv8Ow/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-support...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sage-support/CAAWYfq1VREBtd9Ai76%2BM0CtE3vtDaqBMq1kzy5HnmCyftY%3D%2BsA%40mail.gmail.com.
3.33300000000000
versus
3.33333333333333
eps = var("eps")
edBaseRing=PolynomialRing(RR,[eps])
edIdeal=ideal(edBaseRing, [eps])
edRing=edBaseRing.quotient_ring(edIdeal)
rat = 10/3
print(RR(rat))
print(edBaseRing(rat))
print(edRing(rat))
3.33333333333333
3.33333333333333
3.33333333333333
eps, dlt = var("eps,dlt")
edBaseRing=PolynomialRing(RR,[eps, dlt])
#edIdeal=ideal(edBaseRing, [eps, dlt])
edIdeal=ideal(edBaseRing, [eps])
edRing=edBaseRing.quotient_ring(edIdeal)
print(RR(rat))
print(edBaseRing(rat))
print(edRing(rat))
3.33333333333333
3.33333333333333
3.33300000000000
________________________________________
From: sage-s...@googlegroups.com <sage-s...@googlegroups.com> on behalf of Nils Bruin <nbr...@sfu.ca>
Sent: Wednesday, March 5, 2025 11:49 PM
To: sage-support
Subject: [sage-support] Re: Bug Polynomial Quotient with 2 ideal generator rings over RR lose precision of base ring.
One generator example (works):
yields:
3.14159265358979
3.14159265358979
3.14159265358979
print(RR(pi))
print(edBaseRing(pi))
print(edRing(pi))
--
You received this message because you are subscribed to a topic in the Google Groups "sage-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-support/gbBYEbxv8Ow/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-support...@googlegroups.com<mailto:sage-support...@googlegroups.com>.
To view this discussion visit https://groups.google.com/d/msgid/sage-support/4f5b168e-bc62-423d-8da8-bf45ae3b9744n%40googlegroups.com<https://groups.google.com/d/msgid/sage-support/4f5b168e-bc62-423d-8da8-bf45ae3b9744n%40googlegroups.com?utm_medium=email&utm_source=footer>.