I noticed the following problem
Code : Tout sélectionner
from giacpy import degree degree("x1**2") degree("x**2")
Edit: It seems giac believes that "x1" is of another type. For instance using e2r(x1**2) will not return the expected result. This is problematic for me.
Edit2: It seems I misunderstood degree? For a multivariate polynomial it does not take the total degree. Does it regard a multivariate polynomial as a univariate polynomial choosing a particular indeterminate? (and how does it choose this?). For instance degree(x*y) will return 1. Do I need to write my own code finding total degree? I also figured degree(x1**2,x1) does work