Re: Function as an argument to a function
- To: mathgroup at smc.vnet.net
- Subject: [mg13852] Re: [mg13814] Function as an argument to a function
- From: "Jurgen Tischer" <jtischer at col2.telecom.com.co>
- Date: Sun, 30 Aug 1998 03:35:39 -0400
- Sender: owner-wri-mathgroup at wolfram.com
Hi Jani, did work fine, please try it again or give a not working example. Jurgen -----Original Message----- From: Jani Eerikki Lakkakorpi <jlakkako at jade.hut.fi> To: mathgroup at smc.vnet.net Subject: [mg13852] [mg13814] Function as an argument to a function >Hello, > >I want to pass a function as an argument to a function I am developing. >For example: Myfunction[Exp[x]] > >I would like Myfunction to return the value of it's parameter function >when (for example) x=1. > >Here's what I have tried: > >Myfunction[f_] := > f[1] > >Doesn't work. Any suggestions?? >-- >_________________________________________________________________________ >__ >Jani Lakkakorpi | Tel. +358 9 621 7295 | E-mail: >jlakkako at cc.hut.fi >Hakolahdentie 3 A 3 | GSM +358 40 563 6180 | FIN-00200 Helsinki | >| > >