Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

If I solved an example equation like |x|+|y|=1 numerically, I would to get a 90° rotated rectangle. If I was to plot the equation, it would result in an image like the following:

example problem

As an example, this is the problem I want to solve:

Sin[x] Sin[2y] + Sin[y] Sin[2x] = 0

May I get suggestions on the best method to plot the example problem achieving the same result?

share|improve this question
2  
I suppose you looked in the documentation for Solve? What problem did you encounter? –  Oleksandr R. Jan 14 at 14:24
add comment

1 Answer

up vote 4 down vote accepted
ContourPlot[Abs[x] + Abs[y] == 1, {x, -2, 2}, {y, -2, 2}]

enter image description here

ContourPlot[Sin[x] Sin[2 y] + Sin[y] Sin[2 x] == 0, {x, -5, 5}, {y, -5, 5}, PlotPoints -> 100]

enter image description here

You can change the limits of the ContourPlot if there's a particular region or feature you want to illustrate.

share|improve this answer
    
Thanks a lot! It helped me. –  Andrew Jan 14 at 14:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.