MathGroup Archive 1996

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

Search the Archive

Postfix (//) with Options? (SUMMARY)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg4610] Postfix (//) with Options? (SUMMARY)
  • From: siegman at ee.stanford.edu (AES)
  • Date: Wed, 21 Aug 1996 03:25:27 -0400
  • Organization: Stanford University
  • Sender: owner-wri-mathgroup at wolfram.com

I inquired:

>  How can I use a postfix operation which has optional parameters and specify
>  the parameters in the postfix?  For example, how can I write   N[expr,k]  
>  as   expr // N  plus something to express a nondefault value for k ?

and got two answers:

1) Scott.AHill at williams.edu suggested using infix notation, like:

      expr~Flatten~1

2) Paul Hinton <paulh at wolfram.com suggested a "pure function" approach:

      Pi // N[#,10]&

Thanks to both.

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: The farthest apart points problem
  • Next by Date: MacWEEK article/help needed
  • Previous by thread: Re: Please help quick!
  • Next by thread: MacWEEK article/help needed