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


Groups > comp.soft-sys.math.mathematica > #5390 > unrolled thread

NumberMultiplier usage

Started by"tenons@gmail.com" <tenons@gmail.com>
First post2011-10-05 08:07 +0000
Last post2011-10-05 08:07 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  NumberMultiplier usage "tenons@gmail.com" <tenons@gmail.com> - 2011-10-05 08:07 +0000

#5390 — NumberMultiplier usage

From"tenons@gmail.com" <tenons@gmail.com>
Date2011-10-05 08:07 +0000
SubjectNumberMultiplier usage
Message-ID<j6h37a$71b$1@smc.vnet.net>
Can anyone shed any light on why

Times[3, 2^z]  appears as 3 x 2^z

but

Times[-3,2^x]  appears as -3 2^z   ?

For presentation purposes (for freshmen!), I would like the
NumberMultiplier to show up in the second case as well.

I realize I can do something like:

Unprotect[Times];
Format[Times[x_?(NumericQ[#] && Negative[#] &), z_] := x\[Cross]z]:
Protect[Times]

but this seems clumsy, a little dangerous, doesn't affect input lines
and produces the result with parentheses which I don't care for:

(-3)x2^z

Does anybody else care about such things?


Michael Williams

[ I have NumberMultiplier set to \[Cross] in all the various *Forms
and the $FrontEnd and AutoMultiplicationSymbol -> True ]

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web