Ticket #6756: trac_6756-referee-patch-ncalexan-1.patch

File trac_6756-referee-patch-ncalexan-1.patch, 1.2 KB (added by ncalexan, 12 years ago)
  • sage/symbolic/derivative.py

    # HG changeset patch
    # User Nick Alexander <ncalexander@gmail.com>
    # Date 1251313255 25200
    # Node ID ffa68e4f399f461997c5fab4772345b728b72019
    # Parent  4205e55055f614946400725a5662710cba08d24b
    [mq]: trac_6756-referee-patch-ncalexan-1.patch
    
    diff -r 4205e55055f6 -r ffa68e4f399f sage/symbolic/derivative.py
    a b  
    119119        2*x*diff(f(x^2), x^2, 1)
    120120
    121121        sage: f(sin(x^2)).diff(x)
    122         2*x*cos(x^2)*diff(f(sin(x^2)), sin(x^2), 1)
     122        2*x*diff(f(sin(x^2)), sin(x^2), 1)*cos(x^2)
    123123
    124124        sage: g(x,f(x)).diff(x)
    125125        diff(f(x), x, 1)*diff(g(x, f(x)), f(x), 1) + diff(g(x, f(x)), x, 1)
  • sage/symbolic/pynac.pyx

    diff -r 4205e55055f6 -r ffa68e4f399f sage/symbolic/pynac.pyx
    a b  
    147147    return py_get_ginac_serial()
    148148
    149149# This variable tells pynac the level of diff derivative
    150 cdef public int diff_derivative_level = 0
     150cdef extern int diff_derivative_level = 0
    151151
    152152def set_diff_derivative_level(int level=-1):
    153153    """