Re: Function as an argument of the function
- To: mathgroup at smc.vnet.net
- Subject: [mg34670] Re: Function as an argument of the function
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Fri, 31 May 2002 04:27:15 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <ad4jg1$jm2$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Sorry for my last answer, you have to test: Length[Cases[func, Slot[_], Infinity]] == 1 || (func =!= Head[func[x]]) to "find" a function of one variable. Regards Jens Tomek wrote: > > Hi. > I have to write a short function in Mathematica. But I have one > problem with it. One of arguments of my function have to be a > function of one variable. > How can I check if the argument of the function is a function of one > variable (I wish there's FunctionQ)?