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

MathGroup Archive 1996

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

Search the Archive

Re: Postfix (//) with Options?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg4658] Re: [mg4579] Postfix (//) with Options?
  • From: Lou Talman <me at talmanl.mscd.edu>
  • Date: Thu, 22 Aug 1996 03:55:11 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

AES wrote:

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

Use a pure function:

In[1]:=
     Pi // N[#, 13]&
Out[1]=
     3.14159265359

--Lou Talman

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


  • Prev by Date: Integration of Bessel Functions
  • Next by Date: Integration of Bessel functions
  • Previous by thread: Re: Postfix (//) with Options?
  • Next by thread: Re: Postfix (//) with Options?