MathGroup Archive 2007

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

Search the Archive

Re: reverse polish notation

  • To: mathgroup at
  • Subject: [mg73109] Re: [mg73099] reverse polish notation
  • From: Murray Eisenberg <murray at>
  • Date: Sat, 3 Feb 2007 04:44:14 -0500 (EST)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <>
  • Reply-to: murray at

You could do it using a "pure function":

   7 // Sqrt // N[#,30]&

But as things get more complicated, it may become harder to read such 
multiple-postfix form than the usual form.

cap'n rye wrote:
> Is there a way to extensively use postfix notation for input in
> Mathematica? I know you can enter F[x] as x//F, but I can't seem to
> make it work for multiple arguments. For example N[Sqrt[7]] can be
> input as 7//Sqrt//N, but I can't figure out how to input N[Sqrt[7],30]
> or even Plus[3,5]. Is this type of input not really supported? Is
> there a way to work around it? Thanks for your help.

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: graphing with dates and values
  • Next by Date: Re: Re: Remote Kernel does nothing
  • Previous by thread: Re: reverse polish notation
  • Next by thread: Re: reverse polish notation