Re: Draw contours for a function?



On 28 Okt., 10:03, saneman <y...@xxxxxx> wrote:
I have this function:

f(x,y) = (x+y)^2

I would like to draw the contours by hand for c=0, c=0.5 and c=1.

for c=0 there is no contour since (x+y)^2 = 0 => x and y = 0.

Well, at least the contour is fairly small.


for c=0.5 I get:

(x+y)^2 = 0.5 => x+y = sqrt(0.5)

Wrong. There is a second possibility.


But how do I find all the values for x and y that matches that criteria?

x+y=const implies that you can write y as a simple function of x.

hagman

.



Relevant Pages

  • density contours
    ... I'm pretty new to matlab and have only used really basic ... through the tutorials, but what I mainly saw was about ... contours around peaks of 3D functions. ... draw the contour lines around the dense areas. ...
    (comp.soft-sys.matlab)
  • density contours
    ... I'm pretty new to matlab and have only used really basic ... through the tutorials, but what I mainly saw was about ... contours around peaks of 3D functions. ... draw the contour lines around the dense areas. ...
    (comp.soft-sys.matlab)
  • Re: Daniel Everett, Chomsky, Pinker and the curse of recursion
    ... One can draw in two ways, either by tracing contours, ... or by laying out hatching lines, shading the paper, ... combines the two ways of drawing, ...
    (sci.lang)
  • Re: Using the CONTOURS functions contour matrix
    ... draw the actual contours. ... using 'contours' not 'contour'. ... The contour function should display ...
    (comp.soft-sys.matlab)