Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: reverse polish notation

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

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


  • 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