Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5390
| From | "tenons@gmail.com" <tenons@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | NumberMultiplier usage |
| Date | 2011-10-05 08:07 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j6h37a$71b$1@smc.vnet.net> (permalink) |
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 ]
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
NumberMultiplier usage "tenons@gmail.com" <tenons@gmail.com> - 2011-10-05 08:07 +0000
csiph-web