Not accepting function as parameter
- To: mathgroup at smc.vnet.net
- Subject: [mg71681] Not accepting function as parameter
- From: "wooks" <wookiz at hotmail.com>
- Date: Sun, 26 Nov 2006 03:49:16 -0500 (EST)
This is a piece of experimental code. The function happy does not evaluate whenever I pass f as a parameter as in the example below. Clear[happy] happy[ f_Function, a_Integer, b_Integer] := Module[{width = (b - a)/1000}, f[width]]; happy[ Sin, 1, 21] I'd be grateful for help.