# 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 '\\sin^{-1}\\cdot5+\\sqrt{2}+{{1}\\over{3}}' sage: y,d = var('y,d') sage: latex(maxima(derivative(ceil(x*y*d), d,x,x,y))) 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 sage: f = function('f') sage: latex(maxima(derivative(f(x*y*d), d,x,x,y))) Traceback (most recent call last): ... NotImplementedError: arguments must be distinct variables sage: latex(maxima(derivative(f(x,y,d), d,x,x,y))) {{{\it \partial}^4}\over{{\it \partial}\,d\,{\it \partial}\,x^2\,  {\it \partial}\,y}}\,f\left(x , y , d\right) sage: latex(maxima(d/(d-2))) {{d}\over{d-2}}