Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4231

Re: Getting TraditionalForm to put in a multiplication sign.

From Peter Pein <petsie@dordos.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Getting TraditionalForm to put in a multiplication sign.
Date 2011-08-09 11:23 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j1r5c4$fi1$1@smc.vnet.net> (permalink)
References <j1lomg$nmi$1@smc.vnet.net>

Show all headers | View raw


Am 07.08.2011 12:16, schrieb Frank K:
> For purposes of exporting Mathematica expressions to other software,
> it would be useful to have a multiplication sign (*) in
> TraditionalForm instead of a space.  For example, x * y * (w + z)
> instead of x y (w + z).  Anybody know how to do this?
> 

Hi,

will the following do what you want?

Unprotect[Times];
Format[HoldPattern[Times[x_, y__]]] := x \[CenterDot] y;
Protect[Times];
a x^2 + b x + c // TraditionalForm


Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Getting TraditionalForm to put in a multiplication sign. Frank K <fkampas@gmail.com> - 2011-08-07 10:16 +0000
  Re: Getting TraditionalForm to put in a multiplication sign. Peter Pein <petsie@dordos.net> - 2011-08-09 11:23 +0000
    Re: Getting TraditionalForm to put in a multiplication sign. Simon <simonjtyler@gmail.com> - 2011-08-11 09:21 +0000
      Re: Getting TraditionalForm to put in a multiplication sign. Frank K <fkampas@gmail.com> - 2011-08-13 10:53 +0000
  Re: Getting TraditionalForm to put in a multiplication sign. Simon <simonjtyler@gmail.com> - 2011-08-10 10:58 +0000

csiph-web