2019-11-18 07:44:36 -0600 | received badge | ● Student (source) |

2019-11-18 07:43:03 -0600 | asked a question | simple script gives "ValueError: element is not in the prime field" I have a very simple script that does not work. It is the following. Here l is defined somewhere else, but that is not what gives the error I think. I think the error occurs when sage goes over the line "K.=FiniteField(r^4, name='a', modulus = g)", because maybe the line "g=a+b*x^2+x^4" does not work? If I do this script manually without the for loops, by just assigning some values to a and b, then it works fine. |

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.