Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Problem with RegionFunction

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88031] Problem with RegionFunction
  • From: zac <replicatorzed at gmail.com>
  • Date: Tue, 22 Apr 2008 06:28:53 -0400 (EDT)

Dear Group,

any idea what is the problem with the output of this Manipulate?

Manipulate[
Plot3D[Sin[x]*Cos[y],{x,1,10},{y,2,10},RegionFunction->Function[{x,y},
45<=(y^x)]]
,{dummy,{True,False}}]

Interestingly none of the following codes produces errors:

Plot3D[Sin[x]*Cos[y], {x, 1, 10}, {y, 1, 10},
 RegionFunction -> Function[{x, y}, 45 <= (y^x)]]

Manipulate[
 Plot3D[Sin[x]*Cos[y], {x, 1, 10}, {y, 1, 10},
  RegionFunction -> If[region, All, Function[{x, y}, 45 <= (y^x)]]]
 , {region, {True, False}}]

Any suggestion would be appreciated.
Thanks in advance,
Istvan Zachar


  • Prev by Date: Re: Converting Power terms to Times terms
  • Next by Date: Defining output formats
  • Previous by thread: Re: waveform
  • Next by thread: Re: Problem with RegionFunction