Re: Function as an argument
- To: mathgroup at smc.vnet.net
- Subject: [mg76755] Re: [mg76625] Function as an argument
- From: "Patrick Scheibe" <mai99dnn at studserv.uni-leipzig.de>
- Date: Sat, 26 May 2007 04:54:38 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <200705251020.GAA06125@smc.vnet.net>
This is because expression[2] is a call to a function and you have given an expression.. MyFunction[2 + #^3 &] works fine. Cheers Patrick Am 25.05.2007, 12:20 Uhr, schrieb dXdYdZdu <dxdydzdu at gmail.com>: > ss[x_] = 2 + x^3 ; > MyFunction[expression_] := Module[{}, Return[expression[2]]] -- Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
- References:
- Function as an argument
- From: "dXdYdZdu" <dxdydzdu@gmail.com>
- Function as an argument