Bill Allombert on Tue, 28 Sep 2004 20:18:17 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Getting the variable of a polynomial |
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() ? ? variable(t^2 + t - 5) %3 = t Cheers, Bill.