Mathematica 9 is now available
Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Re: passing functions as parameters

  • To: mathgroup at
  • Subject: [mg34000] Re: [mg33988] passing functions as parameters
  • From: BobHanlon at
  • Date: Fri, 26 Apr 2002 03:27:21 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

In a message dated 4/25/02 4:24:11 AM, icmc2MAKNUTIOVO at writes:

>How would one pass one function to another?
>I need to be able to define functions in the following fashion:
>to be able to later on evaluate
>g[2.,3., f?]
>I have tried couple of paths with no success and would really like to
>avoid using global function in function g.



{g[2,3,f], g[3,2,f]}

{"Waiting", "Done"}

or with a pure function

{g[0,Pi/2, Sin[#]&], g[0,Pi/2, Cos[#]&]}

{"Waiting", "Done"}

Bob Hanlon
Chantilly, VA  USA

  • Prev by Date: Re: passing functions as parameters
  • Next by Date: 3D contour through a point
  • Previous by thread: Re: passing functions as parameters
  • Next by thread: RE: passing functions as parameters