Re: How do declare real functions? (was: NDSolve Problems)
- To: mathgroup at smc.vnet.net
- Subject: [mg67972] Re: How do declare real functions? (was: NDSolve Problems)
- From: "James Gilmore" <james.gilmore at yale.edu>
- Date: Wed, 19 Jul 2006 05:21:12 -0400 (EDT)
- References: <e9frkc$2m4$1@smc.vnet.net><e9ibi3$4v4$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, Perhaps http://support.wolfram.com/mathematica/kernel/Symbols/System/NDSolve.html will be of some use? One can wrap the function in Re[] to force the function to be real, e.g. In[4]:= f[x_] = Sqrt[x]; freal[(x_)?NumericQ] := Re[f[x]] freal[-1] Out[6]= 0 but Im not sure of the context that you want a strictly real function. Cheers James Gilmore wandering.the.cosmos at gmail.com wrote: > I have a related question: is it possible in Mathematica to declare my > function to be strictly real?