|Jeroen Demeyer on Tue, 28 Sep 2004 20:36:02 +0200|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: Getting the variable of a polynomial|
Bill Allombert wrote:
On Tue, Sep 28, 2004 at 04:40:59PM +0200, Jeroen Demeyer wrote:Hi all,Is there a way in GP to get the variable of a polynomial? Something like polvar(t^2 + t - 5) which would return t. It would be very useful to make polynomials (say, using Pol()) having the same variable as a given polynomial.I checked the documentation, but could not find it.Did you try variable() ?
That's exactly what I was looking for, thanks! I sort of had a feeling it should exist somewhere, but I didn't find it (I was looking at the documentation for polynomials)