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


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

Re: Just another Mathematica "Gotcha"

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail
From Murray Eisenberg <murray@math.umass.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Just another Mathematica "Gotcha"
Date Sun, 14 Aug 2011 12:23:55 +0000 (UTC)
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <j28eor$3fs$1@smc.vnet.net> (permalink)
References <201108131049.GAA25536@smc.vnet.net>
Reply-To murray@math.umass.edu
Lines 28
NNTP-Posting-Date 14 Aug 2011 11:26:13 GMT
NNTP-Posting-Host 27f338e0.news.twtelecom.net
X-Trace DXC=mhma>FkSQPFcn?\5K_?h9OC_A=>8kQj6M=_1NR_H?JPMj>WA7MKjR;AEFiONJ7[GoFm]GP`fG^60J
X-Complaints-To abuse@twtelecom.net
Xref x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:4400

Show key headers only | View raw


Perhaps that would be a good rationale for Mathematica _not_ allowing a 
number to begin with a decimal point?

As things stand right now, Mathematica is rather forgiving about this.

For fun, I tried

   .3/.3 -> a

to see that the period binds to the following 3 rather than to the /.

On 8/13/11 6:49 AM, Daniel Lichtblau wrote:
>> In primary schools one does not learn about // or /. thus the need for
>> parentheses is subtle. Using FullForm (or writing in Lisp) makes such
>> issues disappear.
>
> Of course one of those was covered in elementary school.
>
> 4.5/.3 = ?

-- 
Murray Eisenberg                     murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

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


Thread

Re: Just another Mathematica "Gotcha" Murray Eisenberg <murray@math.umass.edu> - 2011-08-14 12:23 +0000

csiph-web