Opened 2 years ago

Last modified 2 years ago

#24962 new defect

Gen * AA

Reported by: vdelecroix Owned by:
Priority: major Milestone: sage-8.2
Component: number theory Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

sage: pari(-1) * AA(2)
-2
sage: pari(-1) * AA(2).sqrt()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-21-b14927ebe1c8> in <module>()
----> 1 pari(-Integer(1)) * AA(Integer(2)).sqrt()

TypeError: unsupported operand type(s) for *: 'cypari2.gen.Gen' and 'AlgebraicReal'

Change History (2)

comment:1 Changed 2 years ago by jdemeyer

What do you expect the answer to be? A PARI number field element?

comment:2 Changed 2 years ago by vdelecroix

Indeed, I did not realize that the object we got was a Gen and not an element of AA

sage: pari(-1) * AA(2)
-2
sage: type(_)
<type 'cypari2.gen.Gen'>
Note: See TracTickets for help on using tickets.