Re: [sage-devel] conversion issue (from QQ to GF(p))

2020-08-19 Thread John Cremona
Thanks to both. It's funny since I have some code I am sure worked OK a year ago but when I ran it this week the only change I had to make was to insert an explicit conversion from QQ to GF(ell). Nils may be interested to know that this is for a project on making a database of modular forms mo

Re: [sage-devel] conversion issue (from QQ to GF(p))

2020-08-17 Thread 'Justin C. Walker' via sage-devel
Just for the record: > On Aug 17, 2020, at 06:40 , Nils Bruin wrote: > > On Monday, August 17, 2020 at 6:04:41 AM UTC-7, John Cremona wrote: > I'm sure this used to work: > > sage: F = GF(2) > sage: r = 5/3 > sage: F(1)*r > TypeError: unsupported operand parent(s) for *: 'Finite Field of si

[sage-devel] conversion issue (from QQ to GF(p))

2020-08-17 Thread John Cremona
I'm sure this used to work: sage: F = GF(2) sage: r = 5/3 sage: F(1)*r TypeError: unsupported operand parent(s) for *: 'Finite Field of size 2' and 'Rational Field' Of course I know that the could not be a coercion from QQ to GF(2) but there is a conversion which works fine (when the denominator