Student Support Forum: 'Region Function and variables' topicStudent Support Forum > General > Archives > "Region Function and variables"

 Next Comment > Help | Reply To Topic
 Author Comment/Response Mel 07/09/12 2:28pm Does Region Function accept a variable as an argument, or does it have to have the equation immediately? I've been trying to give it a variable from a function call, but Mathematica usually crashes. The commented one doesn't work, while the uncommented one does as I left the region function defined I guess. How can I fix this? (*v[vf_,sf_]:=VectorPlot3D[vf,{x,-2,2},{y,-2,2},{z,-2,2},VectorPoints-\ >25,VectorScale->{0.1,Scaled[0.5]},RegionFunction->Function[{x,y,z},-\ 0.1<=sf<=0.1]];*) v[vf_] := VectorPlot3D[vf, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, VectorPoints -> 25, VectorScale -> {0.1, Scaled[0.5]}, RegionFunction -> Function[{x, y, z}, -0.1 <= x^2 - y^2 - z <= 0.1]] URL: ,

 Subject (listing for 'Region Function and variables') Author Date Posted Region Function and variables Mel 07/09/12 2:28pm Re: Region Function and variables Michael 07/10/12 8:28pm
 Next Comment > Help | Reply To Topic