Skip to main content
added tag
Link
bbgodfrey
  • 62.1k
  • 18
  • 92
  • 160
Source Link
marfi
  • 115
  • 1
  • 5

VectorFieldPlot Assumptions - restricted domain

I would like to plot the 2-D vector field:

VectorFieldPlot[{ x/Sqrt[x^2 + y^2], y/Sqrt[x^2 + y^2]}, {x, -5,  5}, {y, -5, 5} ]

but I encounter zero division at the origin. How to cast out the point {0,0}? I tried the Assumptions -> x <> 0 && y <> 0, but the string Assumptions is red and seems that it isn't available for VectorFieldPlot.

Furthermore, for another vector field, I would need to cast out the semi-line "(x,0), x in ( - infininty, 0 >".

To summarize: the question is how to restrict the (plot) domain of a vector field?

Could you help?

Thank you and wish you a nice day

marfi