On Tuesday 31 March 2009, William Stein wrote: > R.ngens() > > On Tue, Mar 31, 2009 at 7:58 AM, [email protected] > > <[email protected]> wrote: > > Dear all, > > I am new to Sage and after reading the help, I couldn't find a > > function that from a multivariate polynomial > > returns the number of variables. > > if > > R=PolynomialRing(ZZ, 20, "z",order="deglex") > > f=R.0*R.1
I think he wants: f.nvariables() Cheers, Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF _www: http://www.informatik.uni-bremen.de/~malb _jab: [email protected] --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
