Simon,

The reason I don't like \over is because I am using Asciimath for the
pretty print output on my servers.  I couldn't  get sMath to work.
When I use SR on an integral it calculates the integral.  I do have a
Python book and have read it.  It is too bad Sage doesn't have a hold
function.

It doesn't look like what I want is doable.

Thanks for your help (William and Simon).

On Oct 28, 3:05 am, Simon King <[email protected]> wrote:
> Mikie,
>
> On 28 Okt., 08:36, Simon King <[email protected]> wrote:
>
> > On 27 Okt., 23:48, Mikie <[email protected]> wrote:
>
> > > I have it kind of working.  When I do the latex on the integral or
> > > answer if their is fraction I get an \over.  I get to get \frac{?}
> > > {?}.  Is there anyway to do this?  
>
> > Did you read the post to which you answered?
>
> Or perhaps I did not properly read (but honestly, I find it often
> enough very difficult to understand what your real concern is). Sorry.
>
> Say, you came as far as in my example session
>   sage: x=sage.calculus.calculus.maxima('x')
>   sage: f = getattr(x,"'integrate")(x)
>   sage: g = SR(f)
>   sage: latex(f)
>   \int {x}{\;dx}
>   sage: latex(g)
>   \int x\,{d x}
>
> Do I understand correctly that one of these latex typesettings for the
> integral suites you?
>
> As you see, MaximaElement (the type of f) has a different latex
> typesetting than Expression (the type of g).
>
> Let's evaluate the integral:
>   sage: r = sage_eval(str(g),globals())
>   sage: type(r)
>   <class 'sage.interfaces.maxima.MaximaElement'>
> This is because of the above re-definition of x as a MaximaElement in
> the global namespace.
>
> And again, there are different typesettings available for different
> data types:
>
>   sage: latex(r)
>   {{x^2}\over{2}}
>
> I understand that you don't like it. So, why not try this:
>   sage: latex(SR(r))
>   \frac{1}{2} \, x^{2}
>
> Cheers,
> Simon
--~--~---------~--~----~------------~-------~--~----~
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-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to