There is also a bug for this somewhere too, I think. The reason is
that degree takes the degree in the first variable, which, since you
didn't specify the variables, is chosen automatically to be x.

Aaron Meurer

On Sat, Feb 15, 2014 at 8:19 AM, Rishabh Kumar <[email protected]> wrote:
> there are 2 functions to compute the degree of the polynomials : degree()
> and total_degree().
> when we use them:
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>>>> poly(x**3+y**5+z).degree()              #wrong
> 3
>>>> poly(x**3+y**5+z).total_degree()          #correct
> 5
>
>
>>>>poly(y**6*x**3+y**5+z).degree()       #wrong
> 3
>>>> poly(y**6*x**3+y**5+z).total_degree()      #correct
> 9
>
> ___________________________________________________________________________________________________________________________________________________________________
>
> mentors please clarify their significance. I am finding it a bit ambiguous.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to