Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11498

ContourPlot non rectangular evaluation?

From Sam McDermott <samwell187@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject ContourPlot non rectangular evaluation?
Date 2012-08-25 08:34 +0000
Message-ID <k1a2n7$igj$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


Hi,

I'd like to make a plot of level curves of a function, but this function becomes singular and passes from infinity to negative infinity, which really uglifies the plot. It is easy for me to identify where the function becomes singular (i.e., when the denominator becomes 0!), but I'm having trouble telling Mathematica to stop evaluating before then, because this singularity is sensitive to both of the variables on the axes of my ContourPlot. Is there a simple way of telling Mathematica where to stop?

In other words,  I have some function

h[x_,y_]:=f[x,y]/g[x,y]

and I can numerically find the zeroes of g[x,y]. Can I make a ContourPlot such that

ContourPlot[h[x,y],{x,xmin,xmax},{y,ymin,ymax}]

does not evaluate below the curve

g[x,y]=0

?

I think I'm basically looking for some way of setting assumptions of evaluating an "If" conditional inside of ContourPlot but can't find a good way of doing it. Any help would be much appreciated!

Thanks very much for your time!

-Sam

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

ContourPlot non rectangular evaluation? Sam McDermott <samwell187@gmail.com> - 2012-08-25 08:34 +0000
  Re: ContourPlot non rectangular evaluation? psycho_dad <s.nesseris@gmail.com> - 2012-08-26 06:49 +0000

csiph-web