MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: canonical mathematical expression represenation?


There are various wrappers that you can use to control the way Mathematica 
expressions are formatted which you can find one the Cell | Display As... 
menu item. The one you want is TraditionalForm which you can use in-line 
thus:

Sum[a^k, {k, 0, M}]//TraditionalForm

If you want to wrap all of your outputs in TraditionalForm then you can do 
the following:

$PrePrint=TraditionalForm[#]&;

in which case Sum[a^k, {k, 0, M}] (and everything else) will be 
traditionally formatted.

Steve Luttrell

"nospam nospam" <nospam_please at nospam.com> wrote in message 
news:coefjk$rf3$1 at smc.vnet.net...
>I noticed that Mathematica represents expressions with
> some specific 'way' or order.
>
> For example,
>
> Sum[a^k, {k, 0, M}]
>
> gives
>          -1 + a^(1+M)
>         -------------
>            -1 + a
>
>
> How can I make it display the expression, in what I would consider
> a more 'natural' way, as follows
>
>           1 - a^(1+M)
>         -------------
>            1 - a
>
> I am sure there is a way to do, and why do you think
> Mathematica does it the way it does? what is the logic
> of how it represents things? is there a command to convert
> the first output to the second? I tried few commands, but
> can not figure it out.
>
> thank you,
> --nospam
> 



  • Prev by Date: Re: canonical mathematical expression represenation?
  • Next by Date: pair functions applied to Zeta function in two ways
  • Previous by thread: Re: canonical mathematical expression represenation?
  • Next by thread: pair sums applied to trignometry sums