Ticket #8568: trac_8568-fix_doctests.patch

File trac_8568-fix_doctests.patch, 1.4 KB (added by Burcin Erocal, 12 years ago)
  • sage/interfaces/maxima.py

    # HG changeset patch
    # User Burcin Erocal <burcin@erocal.org>
    # Date 1283946225 -7200
    # Node ID b4c77164e3977a7917b7fef6d7823c8952f7de44
    # Parent  b592923cb5d77178ab8a172c85f2711fdae9df28
    trac 8568: fix doctests for the maxima interface after changing conversion of derivatives to maxima
    
    diff --git a/sage/interfaces/maxima.py b/sage/interfaces/maxima.py
    a b  
    22422242            '\\sin^{-1}\\cdot5+\\sqrt{2}+{{1}\\over{3}}'
    22432243
    22442244            sage: y,d = var('y,d')
    2245             sage: latex(maxima(derivative(ceil(x*y*d), d,x,x,y)))
    2246             d^3\,\left({{{\it \partial}^4}\over{{\it \partial}\,d^4}}\,  {\it ceil}\left(d , x , y\right)\right)\,x^2\,y^3+5\,d^2\,\left({{  {\it \partial}^3}\over{{\it \partial}\,d^3}}\,{\it ceil}\left(d , x   , y\right)\right)\,x\,y^2+4\,d\,\left({{{\it \partial}^2}\over{  {\it \partial}\,d^2}}\,{\it ceil}\left(d , x , y\right)\right)\,y
    2247 
     2245            sage: f = function('f')
     2246            sage: latex(maxima(derivative(f(x*y*d), d,x,x,y)))
     2247            Traceback (most recent call last):
     2248            ...
     2249            NotImplementedError: arguments must be distinct variables
     2250            sage: latex(maxima(derivative(f(x,y,d), d,x,x,y)))
     2251            {{{\it \partial}^4}\over{{\it \partial}\,d\,{\it \partial}\,x^2\,  {\it \partial}\,y}}\,f\left(x , y , d\right)
    22482252
    22492253            sage: latex(maxima(d/(d-2)))
    22502254            {{d}\over{d-2}}