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: [mg4666] Re: Postfix (//) with Options?
  • From: phbrf at ibm.net (Peter Breitfeld)
  • Date: Thu, 22 Aug 1996 03:55:18 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

In <4v16ds$f8k at ralph.vnet.net>, "Alex Scheitlin" <alex-s at worldnet.att.net> writes:
>I'm not sure it makes it makes it more readable but infix works. e.g.
>expr~N~k
>expr~Flatten~1
>
>AES <siegman at ee.stanford.edu> wrote in article
><4u9i7r$moj at dragonfly.wolfram.com>...
>> 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 ?
>> 
>> I particularly want to implement  Flatten[expr,1]  in postfix
>> form, because it seems more readable to have the expression (which may be
>> lengthy) come first, then the Flatten as an afterthought (reduces the
>> depth of brackets by one also).
>
expr // N[#,20]&  works to produce eg 20 digits.

===================================
 Peter Breitfeld, Saulgau, Germany 
         <phbrf at ibm.net>
===================================


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


  • Prev by Date: Re: Background jobs
  • Next by Date: A new front end for Mathematica
  • Previous by thread: Re: Postfix (//) with Options?
  • Next by thread: Re: Postfix (//) with Options?