Re: pure functions (or not?)
- To: mathgroup at smc.vnet.net
- Subject: [mg22246] Re: [mg22217] pure functions (or not?)
- From: "Richard Palmer" <rhpcvn at tiac.net>
- Date: Sat, 19 Feb 2000 01:33:47 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
I suspect it is because f[0,0,k] doesn't work and the plot tries to evaluate it at that point. Your plot needs to avoid that point or define what the function means there. Regards, Richard Palmer -----Original Message----- From: Dr Sebastien NEUKIRCH <ucessne at ucl.ac.uk> To: mathgroup at smc.vnet.net Subject: [mg22246] [mg22217] pure functions (or not?) > >Hi there, > >I have a problem with functions. >Why is the following not working : >In[1]:= >function[{x_,y_,z_}]:= >Module[{a,fr},fr=FindRoot[z+x*Sin[a]-y*a,{a,1.1}];fr[[1,2]]] > >In[2]:= >function[{-1,-2,3}] > >Out[2]= >-1.96219 > >In[3]:= >ContourPlot[function[{x,y,3}],{x,-2,2},{y,0,2},Contours->{0}] > >In[4]:= ><<Graphics`ContourPlot3D` >In[5]:= >ContourPlot3D[function[{x,y,z}],{x,-2,2}, {y,0,2}, {z,-2,2}] > > >--------------------------- >The contourplot3d doest NOT work. Even if I add >COMPLIED->TRUE. > >Thanks for any help or explanation, > >Seb > >Sebastien Neukirch > Centre for Nonlinear Dynamics >s.neukirch at ucl.ac.uk > University College London >http://www.ucl.ac.uk/~ucessne > London WC1 6BT U.K. >Tel : +44 171 504 27 27 > Fax : +44 171 380 09 86 > > > >