MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

pure functions (or not?)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg22217] pure functions (or not?)
  • From: Dr Sebastien NEUKIRCH <ucessne at ucl.ac.uk>
  • Date: Fri, 18 Feb 2000 02:34:56 -0500 (EST)
  • Organization: University College London
  • Sender: owner-wri-mathgroup at wolfram.com

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




  • Prev by Date: Mathematica bug in Graphics3D ??
  • Next by Date: Legend Package
  • Previous by thread: Re: Mathematica bug in Graphics3D ??
  • Next by thread: Re: pure functions (or not?)