I mean... I do not know. If it is already evaluated to cos(x) then it should be false (not *true*). current "sympy" gives false, I think I would go with it.
On Apr 3, 11:51 am, pallab <pallabb...@gmail.com> wrote: > > > On Apr 3, 11:36 am, "ma...@mendelu.cz" <ma...@mendelu.cz> wrote: > > > What kind of behavior do you expect from the following command? > > > isinstance(diff(sin(x),x),"what to put?") > > > Robert > > > On 3 dub, 20:32, pallab <pallabb...@gmail.com> wrote: > > > > Is there any way to check whether a symbolic expression is a > > > derivative. Like, > > > > isinstance(diff(f(x),x),"what to put?") > > > > gives "True" > > > > and > > > > isinstance(f(x),"what to put?") > > > > gives false, assuming f is not a derivative itself. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org