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?