Skip to content

Commit b9cf5a9

Browse files
committed
Add a test
1 parent 78bd23b commit b9cf5a9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/sage/libs/singular/singular.pyx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,6 +1393,13 @@ cdef number *sa2si_NF(object elem, ring *_ring) noexcept:
13931393
(a + 1)
13941394
sage: R(F.gen()^5) + 1
13951395
(-a^2 + a + 2)
1396+
1397+
Ensures :issue:`36101` is fixed::
1398+
1399+
sage: RR.<x, y, r, s0, c0, s1, c1> = AA[]
1400+
sage: f = -4*r^2+(((1+2*AA(cos(pi/6)))*c0*r+2*c1*r+(1+2*AA(cos(pi/6)))*s0*r+2*s1*r)/2-1/2)^2+((1-(1+2*AA(cos(pi/6)))*c0*r-2*c1*r+(1+2*AA(cos(pi/6)))*s0*r+2*s1*r)/2-1/2)^2
1401+
sage: f.change_ring( QuadraticField(3) )
1402+
...
13961403
"""
13971404
cdef int i
13981405
cdef number *n1

0 commit comments

Comments
 (0)