BSW_Action

10 Reputation

One Badge

7 years, 217 days

MaplePrimes Activity


These are replies submitted by BSW_Action

@taro 

Hi Taro,, 

My issue is that solutions is that if I change the view to view = [-20..20, -20..20], the contours do not expand to fill the new space.

In comparing to plot3d, contourplot does not give the same range for x,y-axes. At least in cylindrical coordinates. 

f := exp(-r/2)*r^2*cos(2*phi);
plot3d([r, phi, f], phi = 0..2*Pi, r = 0..15,  coords = cylindrical);
plots:-contourplot(exp(-r/2)*r^2*cos(2*phi),  phi = 0..2*Pi, r = 0..15, coords = cylindrical);
plots:-contourplot(exp(-r/2)*r^2*cos(2*phi),  phi = 0..2*Pi, r = 0..15, coords = cylindrical, view = [-15..15, -15..15]);

I'm not sure how to fix this. 
 

 

@tomleslie Hi Tom, 

My issue is that the result of contourplot does not match that of plot3d. It seems to be a range issue, If I plot 

f := exp(-r/2)*r^2*cos(2*phi);
plot3d([r, phi, f], phi = 0..2*Pi, r = 0..15,  coords = cylindrical);
plots:-contourplot(exp(-r/2)*r^2*cos(2*phi),  phi = 0..2*Pi, r = 0..15, coords = cylindrical);
plots:-contourplot(exp(-r/2)*r^2*cos(2*phi),  phi = 0..2*Pi, r = 0..15, coords = cylindrical, view = [-15..15, -15..15]);
 

The plot3d, has a x-axis range of -15..15. But the contourplot only has a range -2..2. How do I change this? Prehaps it has to do with cylindrical coordinates?

Page 1 of 1