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