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


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

Re: Just another Mathematica "Gotcha"

From Murray Eisenberg <murray@math.umass.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Just another Mathematica "Gotcha"
Date 2011-08-14 12:23 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j28eor$3fs$1@smc.vnet.net> (permalink)
References <201108131049.GAA25536@smc.vnet.net>

Show all headers | 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