Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Default Input / Output and TraditionalForm

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96486] Re: Default Input / Output and TraditionalForm
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Sat, 14 Feb 2009 03:12:45 -0500 (EST)

On 2/13/09 at 3:39 AM, fizzycist at knology.net (fizzy) wrote:

>Another question about TraditionalForm output....sometimes the
>output for Exp[a] is e^a, sometimes its exp(a).....I want to set the
>output to e^a....I tried the following , which doesnt work....

>Format[Exp[a_]]:=e^a

>how would I do that?

It is a bit unclear as to what you want here. If it is the type
set traditional form you want then

TradiitionalForm[expr]

will do that for any expr. But if you want what you have
literally posted rather than the typeset form, you will need
something like

Format[Exp[a_]]:="e^"<>ToString[a]

However, if a is a complex expression rather than a symbol with
no assigned value or a numeric value, the result of this quite
likely won't be what you want.



  • Prev by Date: Re: What's up with missing contour labels in Mathematica 7.0.0 (OS
  • Next by Date: Re: What's up with missing contour labels in Mathematica 7.0.0 (OS X/Intel)?
  • Previous by thread: Re: Default Input / Output and TraditionalForm
  • Next by thread: Bug in Limit