MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Just another Mathematica "Gotcha"

  • To: mathgroup at
  • Subject: [mg120892] Re: Just another Mathematica "Gotcha"
  • From: Murray Eisenberg <murray at>
  • Date: Sun, 14 Aug 2011 08:15:56 -0400 (EDT)
  • Delivered-to:
  • References: <>
  • Reply-to: murray at

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 at
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

  • Prev by Date: Re: I want a plot label that shows interactively the values of a
  • Next by Date: Re: Basic questions on _Plus and recursion
  • Previous by thread: Re: How to plot weighted edges on this graph?
  • Next by thread: Re: Just another Mathematica "Gotcha"