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
- References:
- reverse polish notation
- From: "cap'n rye" <jacksiegrist@yahoo.com>
- reverse polish notation