Question: How to exclude a range from a range?

Hi everyone

 

Im new to MaplePrimes aswell as to Maple.

I have a task where i shoud plot the following shape (with a hole in the centre) using the plot3d function:

 

 

 

 

 

 

 

All i have accomplished in the last hours is the following file A1.0.mw:

As you can see i havent been able to get rid off the surface in the centre nor the spikes on the edge...
 

  • In order to fix the issue regarding the centre I assume I have to exclude the range -2..2 from x, but havent been able to do so.
  • Regarding the spikes on the edge Im honestly pretty much clueless why they appear in the first place.

 

After several hours of trying on my own, I really need your help please!

A1.0.mw
 

f := (x, y) -> ((((((x^2)+(y^2))^(1/2))-4))/(((((x^2)+(y^2))^(1/2))-2)*((((x^2)+(y^2))^(1/2))-6)))+15;
plot3d(f, -6..6, -sqrt(-x^2+36) .. sqrt(-x^2+36), grid=[400,400], view=0..30);

proc (x, y) options operator, arrow; ((y^2+x^2)^(1/2)-4)/(((y^2+x^2)^(1/2)-2)*((y^2+x^2)^(1/2)-6))+15 end proc

 

 

 


 

Download A1.0.mw
 

 

 

Please Wait...