sage.libs.pari.gen.PariError: ZZ_123633238138850861[y]/(y^2 + 114948053005503479*y + 71680486823734693) is not a field in FpX_ffintersect
I have no clue what that error message means, and more importantly, how to avoid it. I've pasted my code from my norebook worksheet to https://gist.github.com/gagern/9320350. I tried to convert all the sage console output style back to sage input notation, with output as comments. Hope I didn't miss anything.
As you can see in that file, I've encountered quite a number of places where the current behavior of sage surprised or even annoyed me. The question I'm posting about now is question 6 from the comments in that file. But if anyone can contribute some insight to some of the other questions as well, that would be highly appreciated. If not, I might end up posting more mails about these as well. But right now, my most immediate problem is that about how to perform a proper algebraic computation on these expressions.
> I have no clue what that error message means, and more importantly, how to avoid it.
The concrete problem (I guess) is that 123633238138850861 is not a prime
number. But now the question becomes: where does this number come from?
> I've pasted my code from my norebook worksheet to https://gist.github.com/gagern/9320350.
Can you please reduce the example code you posted? If you think this is
a bug in Sage, try to post the minimal amount of code that will
reproduce the bug.
AttributeError: 'AlgebraicPolynomialTracker' object has no attribute '_gen'
I think as a general rule, you should try to avoid symbolic computations for any serious work. Try to convert your problem to use a polynomial ring instead.
Nevertheless, here is a minimal example:
https://gist.githubusercontent.com/gagern/9320350/raw/d1896f7a5a05b24075098941c9c3ff156ca6c139/MinimalReprodcing6.sage
It is minimal in the following sense: For the whole expression, the minpoly call fails with the claimed error message. For each operand, however, it succeeds. If I recreate each operand from its minimal polynomial, the call succeeds as well. So it must be not only the value stored in the first operand, but also the way it is encoded, represented, references other things and so on. The whole thing is far from minimal in terms of code length, but as I said, I can't make the expression any easier and still reproduce the issue. In terms of number of commands, it should be fairly close to minimal, but the command defining the expression is huge.