Hi Robert, On Sun, 11 Oct 2009 04:30:14 -0700 (PDT) "ma...@mendelu.cz" <ma...@mendelu.cz> wrote:
> Hello all, is there in Sage a function which tests, if expression1 > depends on expression2 ? > Something like Maxima's command freeof? Symbolic expressions have methods named find, match, has. <snip> > sage: x=var('x') > sage: freeof(x,x^2+3) > False > sage: freeof(x^2,x^2+3) > False > sage: freeof(x^6,x^2+3) > True sage: (x^2+3).has(x) True sage: (x^2+3).has(x^2) True sage: (x^2+3).has(x^6) False Does this work for you? Cheers, Burcin --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---