Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168755
Image: ubuntu2004
#conversion error demo var('x y t') #case 1 with alpabethic order of function arguments t, x, y L=function('L', t, x, y) d=diff(diff(L,y),t) + diff(L,x) m=maxima(d) print '\n0a) Function L defined as : ',L print '\n1a). Sage operator notation : ',d print '\n2a). Maxima converted output :\n',m print '\n3a). output typesetted :\n';show(m) #case 2 L=function('L', x, y,t) d=diff(diff(L,y),t) + diff(L,x) m=maxima(d) print '\n0b) Function L defined as : ',L print '\n1b). Sage operator notation : ',d print '\n2b). Maxima converted output :\n',m print '\n3b). output typesetted :\n';show(m)
0a) Function L defined as : L(t, x, y) 1a). Sage operator notation : D[0, 2](L)(t, x, y) + D[1](L)(t, x, y) 2a). Maxima converted output : 2 d d -- (L(t, x, y)) + ----- (L(t, x, y)) dx dt dy 3a). output typesetted :
{{{\it \partial}}\over{{\it \partial}\,x}}\,L\left(t , x , y\right) +{{{\it \partial}^2}\over{{\it \partial}\,t\,{\it \partial}\,y}}\,L \left(t , x , y\right)
0b) Function L defined as : L(x, y, t) 1b). Sage operator notation : D[0](L)(x, y, t) + D[1, 2](L)(x, y, t) 2b). Maxima converted output : 2 d d ----- (L(t, x, y)) + -- (L(t, x, y)) dx dy dt 3b). output typesetted :
{{{\it \partial}^2}\over{{\it \partial}\,x\,{\it \partial}\,y}}\,L \left(t , x , y\right)+{{{\it \partial}}\over{{\it \partial}\,t}}\,L \left(t , x , y\right)
var('x y t') L=function('L', t, x, y) m1=maxima(diff(L,t)) L=function('L', x, y, t) m2=maxima(diff(L,t)) print m1 print m2
d -- (L(t, x, y)) dt d -- (L(t, x, y)) dy
version()
'Sage Version 4.1.1, Release Date: 2009-08-14'