On 9/26/07, William Stein <[EMAIL PROTECTED]> wrote:
>
> One should slightly rewrite the derivative function for
> polynomials (and power series) to take
> an optional argument (the variable).  If the
> innput variable is the same as the parent
> gen, then differentiate as before; otherwise
> attempt to call derivative on the coefficients -- if
> that works, good; if not, return 0.

Sorry to respond so quickly, but I've made this trac #756:

    http://trac.sagemath.org/sage_trac/ticket/756


> >
> > /home/wdj/sagefiles/sage-2.8.3.rc3/local/lib/python2.5/site-packages/sage/calculus/functional.py
> > in derivative(f, *args, **kwds)
> >      45     """
> >      46     try:
> > ---> 47         return f.derivative(*args, **kwds)
> >      48     except AttributeError:
> >      49         pass
> >
> > <type 'exceptions.TypeError'>: derivative() takes no arguments (1 given)
> >
> > > >
> >
>
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washington
> http://wstein.org
>


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to