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: [mg4656] Re: [mg4579] Postfix (//) with Options?
  • From: Allan Hayes <hay at haystack>
  • Date: Thu, 22 Aug 1996 03:55:10 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

AES <siegman at ee.stanford.edu>
[mg4579] Postfix (//) with Options?
writes

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

You can use a function:
	
Pi//N[#,40]&

	3.1415926535897932384626433832795028841972
	
Allan Hayes
hay at haystack.demon.co.uk

	





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


  • Prev by Date: Re: Matching random numbers
  • Next by Date: Re: If statement inside Do loop
  • Previous by thread: Re: Postfix (//) with Options?
  • Next by thread: Re: Postfix (//) with Options?