Hello Ralf, thank you for your answer, it seems to work now!
But what I was trying to achieve, and I'm sorry for not making myself clear, was to find 2 polynomials such that the resultant between them was a prime number. It makes a lot of sense to need a Symbol to evaluate the resultant, but I didn't quite thought of it because sometimes, the input that I send does work. It was quite confusing for me. Anyway, thanks again! Best regards, On Sun, Jun 24, 2012 at 4:52 AM, Ralf Hemmecke <[email protected]> wrote: > Hi Gabriel, > > Since you haven't been posing any question, but rather just a statement > about your problem, it's hard to answer. > > I don't quite get the goal of your program. The most important question > for me is: What do you want to achieve? Do you want to compute a prime > number or do you want to learn about how to write a program? > > Ralf > > PS: The error says that Polynomial Integer doesn't implement a function > resultant: (%, %) -> %. And if you look more closely at the output of > > )show Polynomial > > you see that the error message is right. It gives: > > resultant : (%,%,Symbol) -> % if R has COMRING > > Polynomial(Integer) is the ring of polynomials in infinitely many > variables. Either you have to provide a variable as the third argument in > your program or you try using UnivariatePolynomial(Integer) instead. >
_______________________________________________ Axiom-mail mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/axiom-mail
