Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14902 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2013-06-16 09:10 +0000 |
| Last post | 2013-06-16 09:10 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Multiplication by 0: non-zero in versions 8 and 9 Bob Hanlon <hanlonr357@gmail.com> - 2013-06-16 09:10 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2013-06-16 09:10 +0000 |
| Subject | Re: Multiplication by 0: non-zero in versions 8 and 9 |
| Message-ID | <kpjveg$9ms$1@smc.vnet.net> |
Use of inexact numbers produces inexact results (which can be handled with Rationalize or Chop). Use of exact numbers produes exact results. Times[1.23 + I 2.45, 0] // Rationalize 0 Times[1.23 + I 2.45, 0] // Chop 0 Times[123/100 + I 245/100, 0] 0 Times[1.23 + I 2.45 // Rationalize, 0] 0 Bob Hanlon On Sat, Jun 15, 2013 at 4:23 AM, Sotirios Bonanos <sbonano@inp.demokritos.gr > wrote: > Hello , > > I have noticed that in all Mathematica versions <8, multiplying a real or > complex number by the integer 0 gives 0, but in versions 8 and 9 > > Times[0, 0.567] gives 0. > > and > > Times[1.23 + I 2.45, 0] gives 0. + 0. I > > I don't know what prompted this change but it is definitely wrong: the > zero property of multiplication holds for real and complex numbers also > (see https://en.wikipedia.org/wiki/Multiplication#Properties) . > > Sotirios Bonanos > http://www.inp.demokritos.gr/~sbonano/ > > >
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web