Re: Function argument
- To: mathgroup at smc.vnet.net
- Subject: [mg66973] Re: Function argument
- From: "J Siehler" <jsiehler at gmail.com>
- Date: Tue, 6 Jun 2006 06:26:55 -0400 (EDT)
- References: <e60o3q$g5s$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Bonny wrote: > I would like to define a function g that evaluates another function f at a > given value. That is, > > g[a, f[x]] := f[a] Better to just refer to function f by name rather than having to pass the evaluation of f at 'x' every time you call g: g[a_,f_]:=f[a] f[x_]:=a*x^2+b*x+c g[f,1] g[Pi,Sin] --