Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: canonical mathematical expression represenation?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52508] Re: canonical mathematical expression represenation?
  • From: "Steve Luttrell" <steve_usenet at _removemefirst_luttrell.org.uk>
  • Date: Tue, 30 Nov 2004 05:24:17 -0500 (EST)
  • References: <coefjk$rf3$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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