Re: How do you read Mathematica?
- To: mathgroup at smc.vnet.net
- Subject: [mg118916] Re: How do you read Mathematica?
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Sun, 15 May 2011 07:06:38 -0400 (EDT)
No, what you will get from FullForm[x/. x->y] is _not_ ReplaceAll[x,Rule[x,y]] but rather just: y To start getting FullForm, you need to use some Hold first. So suppose you evaluate FullForm[Hold[x /. x -> y ]] so as to obtain: Hold[ReplaceAll[x,Rule[x,y]]] If you now try to Speak as input that last output, perhaps surprisingly you'll get: "Hold of the quantity x slash dot x goes to y" On 5/14/2011 3:08 AM, Richard Fateman wrote: > > ...As for reading Mathematica out loud, there is a simple solution that, > however, exposes the cryptic nature of Mathematica's syntax. > Simply read out loud the FullForm. That gives "words" for notation like /. > > Thus x/. x->y is > > ReplaceAll[x,Rule[x,y]]. > > So all you need is a verbalization of [, ], and ",". -- Murray Eisenberg murray at 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