Hi, does SAGE have some kind of mechanism to display complicated equations (preferably using TeX) from python?
I get this out of my calculation: 1/4*exp(\lambda(r))**(-1)*exp(\nu(r))*\nu'(r)**2+exp(\lambda(r))**(-1)*exp(\nu(r))*r**(-1)*\nu'(r)-1/4*exp(\lambda(r))**(-1)*exp(\nu(r))*\lambda'(r)*\nu'(r)+1/2*exp(\lambda(r))**(-1)*exp(\nu(r))*(\nu'(r))' r**(-1)*\lambda'(r)-1/2*(\nu'(r))'-1/4*\nu'(r)**2+1/4*\nu'(r)*\lambda'(r) -1/2*exp(\lambda(r))**(-1)*r*\nu'(r)-exp(\lambda(r))**(-1)-sin(\theta)**(-2)*cos(\theta)**2-(-1-sin(\theta)**(-2)*cos(\theta)**2)+1/2*exp(\lambda(r))**(-1)*r*\lambda'(r) -1/2*exp(\lambda(r))**(-1)*r*sin(\theta)**2*\nu'(r)+1/2*exp(\lambda(r))**(-1)*r*sin(\theta)**2*\lambda'(r)-exp(\lambda(r))**(-1)*sin(\theta)**2+sin(\theta)**2 As you can see, it's a complete mess. However, when displayed in TeX, it looks good, it's just a normal Schwarzschild solution. So I was wondering, how you work with such expressions? For example in the notebook I can use the show(): http://www.sagenb.com/ondrej however, if I want to work in python in a terminal? In SymPy, we either can show the mathml representation in the gtk viewer, or get a png image from TeX and display it in a pygame window. Neither of which is perfect. So I am interested in your experience. My idea is to work from a regular python and use some kind of a console for the graphic stuff. But I think nothing like it exists so far. Ondrej --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---
