27 Mar
2006
27 Mar
'06
5:18 p.m.
Dear all, I have added a method .is_polynomial() to GiNaC. Using .info(info_flags::polynomial) is not sufficient because in that case one cannot distinguish an expression that may be a polynomial in a variable but nog in another. Example: x*y*sin(y) is a polynomial in x but not in y. Hence (x*y*sin(y)).is_polynomial(x) returns true but (x*y*sin(y)).is_polynomial(lst(x,y)) returns false. I also patched the tutorial. Best, Chris
7034
Age (days ago)
7034
Last active (days ago)
0 comments
1 participants
participants (1)
-
Chris Dams