How Can Multiple Level Curves Be Graphed In Mathematica? [closed] Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)how do i graph level curves?find all points for intersection between 2 polar equationsFinding out the nodes from spherical symmetric equation for mathematica and then plotting it in gnu-plotHow do you determine whether a curve uses arc length as a parameter?How can I sketch the level curvesHow to sketch level curves/sections?Trigonometric Partial DerivativeApproximate equation for tapered cycloid offset curve without cuspsTime dependent Schrodinger eqn: Summing probability constants doesn't equal 1Quick question regarding $int fraccos x + sin xsin 2x,dx$
What does Sonny Burch mean by, "S.H.I.E.L.D. and HYDRA don't even exist anymore"?
malloc in main() or malloc in another function: allocating memory for a struct and its members
How to make an animal which can only breed for a certain number of generations?
Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?
Why are two-digit numbers in Jonathan Swift's "Gulliver's Travels" (1726) written in "German style"?
Is there a canonical “inverse” of Abelianization?
Can gravitational waves pass through a black hole?
How to show a density matrix is in a pure/mixed state?
My mentor says to set image to Fine instead of RAW — how is this different from JPG?
Is the Mordenkainen's Sword spell underpowered?
Dinosaur Word Search, Letter Solve, and Unscramble
Restricting the Object Type for the get method in java HashMap
How many time has Arya actually used Needle?
One-one communication
By what mechanism was the 2017 UK General Election called?
Why did Bronn offer to be Tyrion Lannister's champion in trial by combat?
What should one know about term logic before studying propositional and predicate logic?
Why is there so little support for joining EFTA in the British parliament?
Shimano 105 brifters (5800) and Avid BB5 compatibility
Why not use the yoke to control yaw, as well as pitch and roll?
Is there a verb for listening stealthily?
The test team as an enemy of development? And how can this be avoided?
New Order #6: Easter Egg
Noise in Eigenvalues plot
How Can Multiple Level Curves Be Graphed In Mathematica? [closed]
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)how do i graph level curves?find all points for intersection between 2 polar equationsFinding out the nodes from spherical symmetric equation for mathematica and then plotting it in gnu-plotHow do you determine whether a curve uses arc length as a parameter?How can I sketch the level curvesHow to sketch level curves/sections?Trigonometric Partial DerivativeApproximate equation for tapered cycloid offset curve without cuspsTime dependent Schrodinger eqn: Summing probability constants doesn't equal 1Quick question regarding $int fraccos x + sin xsin 2x,dx$
$begingroup$
This is the problem below:
For each function given below in (i)-(iii), perform the following steps in Mathematica
Plot several level curves f(x, y) = c for c = −2, −1, 0, 1, 2, using ContourPlot.
(i) f(x, y) = sin x − cos y
Once I know how to do this, I'll be able to figure out the rest. However, this is my code and it is not working:
ContourPlot[ Sin[x] - Cos[y] == -2, x, -10, 10, y, -10, 10]
My professor has the same thing in her code, but mine is not showing anything but a blank white box. Once I know how to do that, I just need to know how to plot multiple ones together. I have tried to search, but could not find anything to help. Thank you.
multivariable-calculus mathematica
$endgroup$
closed as off-topic by T. Bongers, K.Power, amd, Eevee Trainer, max_zorn Apr 3 at 2:20
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question is not about mathematics, within the scope defined in the help center." – T. Bongers, K.Power, amd, Eevee Trainer, max_zorn
add a comment |
$begingroup$
This is the problem below:
For each function given below in (i)-(iii), perform the following steps in Mathematica
Plot several level curves f(x, y) = c for c = −2, −1, 0, 1, 2, using ContourPlot.
(i) f(x, y) = sin x − cos y
Once I know how to do this, I'll be able to figure out the rest. However, this is my code and it is not working:
ContourPlot[ Sin[x] - Cos[y] == -2, x, -10, 10, y, -10, 10]
My professor has the same thing in her code, but mine is not showing anything but a blank white box. Once I know how to do that, I just need to know how to plot multiple ones together. I have tried to search, but could not find anything to help. Thank you.
multivariable-calculus mathematica
$endgroup$
closed as off-topic by T. Bongers, K.Power, amd, Eevee Trainer, max_zorn Apr 3 at 2:20
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question is not about mathematics, within the scope defined in the help center." – T. Bongers, K.Power, amd, Eevee Trainer, max_zorn
3
$begingroup$
This seems like it ought to be on the Mathematica SE site instead.
$endgroup$
– T. Bongers
Apr 2 at 17:12
$begingroup$
Voting to close for the reason T. Bongers has given.
$endgroup$
– K.Power
Apr 2 at 17:13
$begingroup$
There is a section on this stack exchange for Mathematica questions so I don't see why it should be closed.
$endgroup$
– Amy Kulp
Apr 2 at 17:13
1
$begingroup$
I would argue to keep this open because it's fundamentally a mathematical question.
$endgroup$
– Théophile
Apr 2 at 17:18
add a comment |
$begingroup$
This is the problem below:
For each function given below in (i)-(iii), perform the following steps in Mathematica
Plot several level curves f(x, y) = c for c = −2, −1, 0, 1, 2, using ContourPlot.
(i) f(x, y) = sin x − cos y
Once I know how to do this, I'll be able to figure out the rest. However, this is my code and it is not working:
ContourPlot[ Sin[x] - Cos[y] == -2, x, -10, 10, y, -10, 10]
My professor has the same thing in her code, but mine is not showing anything but a blank white box. Once I know how to do that, I just need to know how to plot multiple ones together. I have tried to search, but could not find anything to help. Thank you.
multivariable-calculus mathematica
$endgroup$
This is the problem below:
For each function given below in (i)-(iii), perform the following steps in Mathematica
Plot several level curves f(x, y) = c for c = −2, −1, 0, 1, 2, using ContourPlot.
(i) f(x, y) = sin x − cos y
Once I know how to do this, I'll be able to figure out the rest. However, this is my code and it is not working:
ContourPlot[ Sin[x] - Cos[y] == -2, x, -10, 10, y, -10, 10]
My professor has the same thing in her code, but mine is not showing anything but a blank white box. Once I know how to do that, I just need to know how to plot multiple ones together. I have tried to search, but could not find anything to help. Thank you.
multivariable-calculus mathematica
multivariable-calculus mathematica
asked Apr 2 at 17:10
Amy KulpAmy Kulp
426
426
closed as off-topic by T. Bongers, K.Power, amd, Eevee Trainer, max_zorn Apr 3 at 2:20
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question is not about mathematics, within the scope defined in the help center." – T. Bongers, K.Power, amd, Eevee Trainer, max_zorn
closed as off-topic by T. Bongers, K.Power, amd, Eevee Trainer, max_zorn Apr 3 at 2:20
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question is not about mathematics, within the scope defined in the help center." – T. Bongers, K.Power, amd, Eevee Trainer, max_zorn
3
$begingroup$
This seems like it ought to be on the Mathematica SE site instead.
$endgroup$
– T. Bongers
Apr 2 at 17:12
$begingroup$
Voting to close for the reason T. Bongers has given.
$endgroup$
– K.Power
Apr 2 at 17:13
$begingroup$
There is a section on this stack exchange for Mathematica questions so I don't see why it should be closed.
$endgroup$
– Amy Kulp
Apr 2 at 17:13
1
$begingroup$
I would argue to keep this open because it's fundamentally a mathematical question.
$endgroup$
– Théophile
Apr 2 at 17:18
add a comment |
3
$begingroup$
This seems like it ought to be on the Mathematica SE site instead.
$endgroup$
– T. Bongers
Apr 2 at 17:12
$begingroup$
Voting to close for the reason T. Bongers has given.
$endgroup$
– K.Power
Apr 2 at 17:13
$begingroup$
There is a section on this stack exchange for Mathematica questions so I don't see why it should be closed.
$endgroup$
– Amy Kulp
Apr 2 at 17:13
1
$begingroup$
I would argue to keep this open because it's fundamentally a mathematical question.
$endgroup$
– Théophile
Apr 2 at 17:18
3
3
$begingroup$
This seems like it ought to be on the Mathematica SE site instead.
$endgroup$
– T. Bongers
Apr 2 at 17:12
$begingroup$
This seems like it ought to be on the Mathematica SE site instead.
$endgroup$
– T. Bongers
Apr 2 at 17:12
$begingroup$
Voting to close for the reason T. Bongers has given.
$endgroup$
– K.Power
Apr 2 at 17:13
$begingroup$
Voting to close for the reason T. Bongers has given.
$endgroup$
– K.Power
Apr 2 at 17:13
$begingroup$
There is a section on this stack exchange for Mathematica questions so I don't see why it should be closed.
$endgroup$
– Amy Kulp
Apr 2 at 17:13
$begingroup$
There is a section on this stack exchange for Mathematica questions so I don't see why it should be closed.
$endgroup$
– Amy Kulp
Apr 2 at 17:13
1
1
$begingroup$
I would argue to keep this open because it's fundamentally a mathematical question.
$endgroup$
– Théophile
Apr 2 at 17:18
$begingroup$
I would argue to keep this open because it's fundamentally a mathematical question.
$endgroup$
– Théophile
Apr 2 at 17:18
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Consider that $sin theta ge -1$ and $cos theta ge -1$ for all $theta$. The plot of
$$cos x - sin y = -2$$
consists of a grid of points where $x = (2k+1)pi$ and $y=(2l+frac12)pi$ for integers $k,l$. It's normal that you don't see anything. Try a value strictly between $-2$ and $2$.
$endgroup$
add a comment |
$begingroup$
The reason you are not seeing any contours is that the solutions of $$f(x,y)=sin x - cos y=2$$ or $$f(x,y)=sin x - cos y=-2$$
are isolated points in the $xy-$plane.
Try this code, and you'll see a periodic pattern:
c=Range[-2,2]/1.05;
f[x_,y_]:=Sin[x]-Cos[y];
ContourPlot[f[x,y]==c,x,-10,10,y,-10,10]
This will produce a more colorful plot:
Show@Table[ContourPlot[f[x,y]==c,x,-10,10,y,-10,10,
ColorFunction->Function[x,y,Hue[3 c]]],c,Range[-2,2]/1.05]
If you just ask for contours, and not specify which contour, then ContourPlot[]
chooses the contours (you can control how many contours to show, the colors, and other aspects of the plot (please see the documentation)). In Mathematica, putting your cursor over the plot will reveal the values of the contours.
f[x_, y_] := Sin[x] - Cos[y];
ContourPlot[f[x, y], x, -10, 10, y, -10, 10]
You can even combine two (or more) of these (if you like) with Show[]
!
$endgroup$
$begingroup$
How did you know to divide by 1.05?
$endgroup$
– Amy Kulp
Apr 2 at 17:41
$begingroup$
Well, I tried 2, did not see anything, 1.99, did not see anything, 1.95 was okay. $2/1.05 approx 1.905$ and we can see a small curve. You can experiment with different values of $c$.
$endgroup$
– mjw
Apr 2 at 17:41
$begingroup$
I would have posted a picture, but my laptop is using a phone for internet, and the connection is not happening. Maybe later ...
$endgroup$
– mjw
Apr 2 at 17:45
$begingroup$
Posted pictures. There is nothing special about "3 c" inHue[3 c]
. Other values will give other colors.
$endgroup$
– mjw
Apr 2 at 19:53
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Consider that $sin theta ge -1$ and $cos theta ge -1$ for all $theta$. The plot of
$$cos x - sin y = -2$$
consists of a grid of points where $x = (2k+1)pi$ and $y=(2l+frac12)pi$ for integers $k,l$. It's normal that you don't see anything. Try a value strictly between $-2$ and $2$.
$endgroup$
add a comment |
$begingroup$
Consider that $sin theta ge -1$ and $cos theta ge -1$ for all $theta$. The plot of
$$cos x - sin y = -2$$
consists of a grid of points where $x = (2k+1)pi$ and $y=(2l+frac12)pi$ for integers $k,l$. It's normal that you don't see anything. Try a value strictly between $-2$ and $2$.
$endgroup$
add a comment |
$begingroup$
Consider that $sin theta ge -1$ and $cos theta ge -1$ for all $theta$. The plot of
$$cos x - sin y = -2$$
consists of a grid of points where $x = (2k+1)pi$ and $y=(2l+frac12)pi$ for integers $k,l$. It's normal that you don't see anything. Try a value strictly between $-2$ and $2$.
$endgroup$
Consider that $sin theta ge -1$ and $cos theta ge -1$ for all $theta$. The plot of
$$cos x - sin y = -2$$
consists of a grid of points where $x = (2k+1)pi$ and $y=(2l+frac12)pi$ for integers $k,l$. It's normal that you don't see anything. Try a value strictly between $-2$ and $2$.
answered Apr 2 at 17:17
ThéophileThéophile
20.5k13047
20.5k13047
add a comment |
add a comment |
$begingroup$
The reason you are not seeing any contours is that the solutions of $$f(x,y)=sin x - cos y=2$$ or $$f(x,y)=sin x - cos y=-2$$
are isolated points in the $xy-$plane.
Try this code, and you'll see a periodic pattern:
c=Range[-2,2]/1.05;
f[x_,y_]:=Sin[x]-Cos[y];
ContourPlot[f[x,y]==c,x,-10,10,y,-10,10]
This will produce a more colorful plot:
Show@Table[ContourPlot[f[x,y]==c,x,-10,10,y,-10,10,
ColorFunction->Function[x,y,Hue[3 c]]],c,Range[-2,2]/1.05]
If you just ask for contours, and not specify which contour, then ContourPlot[]
chooses the contours (you can control how many contours to show, the colors, and other aspects of the plot (please see the documentation)). In Mathematica, putting your cursor over the plot will reveal the values of the contours.
f[x_, y_] := Sin[x] - Cos[y];
ContourPlot[f[x, y], x, -10, 10, y, -10, 10]
You can even combine two (or more) of these (if you like) with Show[]
!
$endgroup$
$begingroup$
How did you know to divide by 1.05?
$endgroup$
– Amy Kulp
Apr 2 at 17:41
$begingroup$
Well, I tried 2, did not see anything, 1.99, did not see anything, 1.95 was okay. $2/1.05 approx 1.905$ and we can see a small curve. You can experiment with different values of $c$.
$endgroup$
– mjw
Apr 2 at 17:41
$begingroup$
I would have posted a picture, but my laptop is using a phone for internet, and the connection is not happening. Maybe later ...
$endgroup$
– mjw
Apr 2 at 17:45
$begingroup$
Posted pictures. There is nothing special about "3 c" inHue[3 c]
. Other values will give other colors.
$endgroup$
– mjw
Apr 2 at 19:53
add a comment |
$begingroup$
The reason you are not seeing any contours is that the solutions of $$f(x,y)=sin x - cos y=2$$ or $$f(x,y)=sin x - cos y=-2$$
are isolated points in the $xy-$plane.
Try this code, and you'll see a periodic pattern:
c=Range[-2,2]/1.05;
f[x_,y_]:=Sin[x]-Cos[y];
ContourPlot[f[x,y]==c,x,-10,10,y,-10,10]
This will produce a more colorful plot:
Show@Table[ContourPlot[f[x,y]==c,x,-10,10,y,-10,10,
ColorFunction->Function[x,y,Hue[3 c]]],c,Range[-2,2]/1.05]
If you just ask for contours, and not specify which contour, then ContourPlot[]
chooses the contours (you can control how many contours to show, the colors, and other aspects of the plot (please see the documentation)). In Mathematica, putting your cursor over the plot will reveal the values of the contours.
f[x_, y_] := Sin[x] - Cos[y];
ContourPlot[f[x, y], x, -10, 10, y, -10, 10]
You can even combine two (or more) of these (if you like) with Show[]
!
$endgroup$
$begingroup$
How did you know to divide by 1.05?
$endgroup$
– Amy Kulp
Apr 2 at 17:41
$begingroup$
Well, I tried 2, did not see anything, 1.99, did not see anything, 1.95 was okay. $2/1.05 approx 1.905$ and we can see a small curve. You can experiment with different values of $c$.
$endgroup$
– mjw
Apr 2 at 17:41
$begingroup$
I would have posted a picture, but my laptop is using a phone for internet, and the connection is not happening. Maybe later ...
$endgroup$
– mjw
Apr 2 at 17:45
$begingroup$
Posted pictures. There is nothing special about "3 c" inHue[3 c]
. Other values will give other colors.
$endgroup$
– mjw
Apr 2 at 19:53
add a comment |
$begingroup$
The reason you are not seeing any contours is that the solutions of $$f(x,y)=sin x - cos y=2$$ or $$f(x,y)=sin x - cos y=-2$$
are isolated points in the $xy-$plane.
Try this code, and you'll see a periodic pattern:
c=Range[-2,2]/1.05;
f[x_,y_]:=Sin[x]-Cos[y];
ContourPlot[f[x,y]==c,x,-10,10,y,-10,10]
This will produce a more colorful plot:
Show@Table[ContourPlot[f[x,y]==c,x,-10,10,y,-10,10,
ColorFunction->Function[x,y,Hue[3 c]]],c,Range[-2,2]/1.05]
If you just ask for contours, and not specify which contour, then ContourPlot[]
chooses the contours (you can control how many contours to show, the colors, and other aspects of the plot (please see the documentation)). In Mathematica, putting your cursor over the plot will reveal the values of the contours.
f[x_, y_] := Sin[x] - Cos[y];
ContourPlot[f[x, y], x, -10, 10, y, -10, 10]
You can even combine two (or more) of these (if you like) with Show[]
!
$endgroup$
The reason you are not seeing any contours is that the solutions of $$f(x,y)=sin x - cos y=2$$ or $$f(x,y)=sin x - cos y=-2$$
are isolated points in the $xy-$plane.
Try this code, and you'll see a periodic pattern:
c=Range[-2,2]/1.05;
f[x_,y_]:=Sin[x]-Cos[y];
ContourPlot[f[x,y]==c,x,-10,10,y,-10,10]
This will produce a more colorful plot:
Show@Table[ContourPlot[f[x,y]==c,x,-10,10,y,-10,10,
ColorFunction->Function[x,y,Hue[3 c]]],c,Range[-2,2]/1.05]
If you just ask for contours, and not specify which contour, then ContourPlot[]
chooses the contours (you can control how many contours to show, the colors, and other aspects of the plot (please see the documentation)). In Mathematica, putting your cursor over the plot will reveal the values of the contours.
f[x_, y_] := Sin[x] - Cos[y];
ContourPlot[f[x, y], x, -10, 10, y, -10, 10]
You can even combine two (or more) of these (if you like) with Show[]
!
edited Apr 2 at 20:02
answered Apr 2 at 17:29
mjwmjw
3977
3977
$begingroup$
How did you know to divide by 1.05?
$endgroup$
– Amy Kulp
Apr 2 at 17:41
$begingroup$
Well, I tried 2, did not see anything, 1.99, did not see anything, 1.95 was okay. $2/1.05 approx 1.905$ and we can see a small curve. You can experiment with different values of $c$.
$endgroup$
– mjw
Apr 2 at 17:41
$begingroup$
I would have posted a picture, but my laptop is using a phone for internet, and the connection is not happening. Maybe later ...
$endgroup$
– mjw
Apr 2 at 17:45
$begingroup$
Posted pictures. There is nothing special about "3 c" inHue[3 c]
. Other values will give other colors.
$endgroup$
– mjw
Apr 2 at 19:53
add a comment |
$begingroup$
How did you know to divide by 1.05?
$endgroup$
– Amy Kulp
Apr 2 at 17:41
$begingroup$
Well, I tried 2, did not see anything, 1.99, did not see anything, 1.95 was okay. $2/1.05 approx 1.905$ and we can see a small curve. You can experiment with different values of $c$.
$endgroup$
– mjw
Apr 2 at 17:41
$begingroup$
I would have posted a picture, but my laptop is using a phone for internet, and the connection is not happening. Maybe later ...
$endgroup$
– mjw
Apr 2 at 17:45
$begingroup$
Posted pictures. There is nothing special about "3 c" inHue[3 c]
. Other values will give other colors.
$endgroup$
– mjw
Apr 2 at 19:53
$begingroup$
How did you know to divide by 1.05?
$endgroup$
– Amy Kulp
Apr 2 at 17:41
$begingroup$
How did you know to divide by 1.05?
$endgroup$
– Amy Kulp
Apr 2 at 17:41
$begingroup$
Well, I tried 2, did not see anything, 1.99, did not see anything, 1.95 was okay. $2/1.05 approx 1.905$ and we can see a small curve. You can experiment with different values of $c$.
$endgroup$
– mjw
Apr 2 at 17:41
$begingroup$
Well, I tried 2, did not see anything, 1.99, did not see anything, 1.95 was okay. $2/1.05 approx 1.905$ and we can see a small curve. You can experiment with different values of $c$.
$endgroup$
– mjw
Apr 2 at 17:41
$begingroup$
I would have posted a picture, but my laptop is using a phone for internet, and the connection is not happening. Maybe later ...
$endgroup$
– mjw
Apr 2 at 17:45
$begingroup$
I would have posted a picture, but my laptop is using a phone for internet, and the connection is not happening. Maybe later ...
$endgroup$
– mjw
Apr 2 at 17:45
$begingroup$
Posted pictures. There is nothing special about "3 c" in
Hue[3 c]
. Other values will give other colors.$endgroup$
– mjw
Apr 2 at 19:53
$begingroup$
Posted pictures. There is nothing special about "3 c" in
Hue[3 c]
. Other values will give other colors.$endgroup$
– mjw
Apr 2 at 19:53
add a comment |
3
$begingroup$
This seems like it ought to be on the Mathematica SE site instead.
$endgroup$
– T. Bongers
Apr 2 at 17:12
$begingroup$
Voting to close for the reason T. Bongers has given.
$endgroup$
– K.Power
Apr 2 at 17:13
$begingroup$
There is a section on this stack exchange for Mathematica questions so I don't see why it should be closed.
$endgroup$
– Amy Kulp
Apr 2 at 17:13
1
$begingroup$
I would argue to keep this open because it's fundamentally a mathematical question.
$endgroup$
– Théophile
Apr 2 at 17:18