Question: The plots:-fieldplot grid option can give a strange result.

I was playing with plots:-fieldplot in Maple 2019 and found that sometime the grid option gives a strange result.  The code I used was

with(plots):
fieldplot([-x/(x^2+y^2)^1.5,-y/(x^2+y^2)^1.5],x=-1..1,y=-1..1);
fieldplot([-x/(x^2+y^2)^1.5,-y/(x^2+y^2)^1.5],x=-1..1,y=-1..1,grid=[8,8]);
fieldplot([-x/(x^2+y^2)^1.5,-y/(x^2+y^2)^1.5],x=-1..1,y=-1..1,grid=[7,7]);

The first two plots come out as expected.  The third plot has (0,0) in the grid, a point where the vector field does not exist.  Rather than giving an error or ignoring the point, Maple 2019 (and 2018) plots a single arrow through the origin. The file with plots is below.  I hope that this can be changed to give a different output.

 


 

with(plots):
fieldplot([-x/(x^2+y^2)^1.5,-y/(x^2+y^2)^1.5],x=-1..1,y=-1..1);
fieldplot([-x/(x^2+y^2)^1.5,-y/(x^2+y^2)^1.5],x=-1..1,y=-1..1,grid=[8,8]);
fieldplot([-x/(x^2+y^2)^1.5,-y/(x^2+y^2)^1.5],x=-1..1,y=-1..1,grid=[7,7]);

 

 

 

 


 

Download fieldplots_1.mw

Please Wait...