[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-mail] A problem with the "resultant" function
From: |
Gabriel Pires |
Subject: |
Re: [Axiom-mail] A problem with the "resultant" function |
Date: |
Sun, 24 Jun 2012 12:43:28 -0300 |
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
<address@hidden> 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.