Bug introduced in 9.0.0 and fixed in 12.0 or earlier
This code meets error:
f[{v1_, v2_}, {x_, y_}] :=
StreamPlot[
Evaluate[{v1/(1 + x^2 + y^2)^(3/2), v2/(1 + x^2 + y^2)^(
3/2)} /. {x -> u/Sqrt[1 - u^2 - v^2],
y -> v/Sqrt[1 - u^2 - v^2]}], {u, -1, 1}, {v, -1, 1}]
f[{2 x y, 1 + y - x^2 + y^2}, {x, y}]
(I notice that this error sometimes but not alaways happens,but when you run it again and again for many times,i.e. 3 times the error comes.)
while this code doesn't:
f[{v1_, v2_}, {x_, y_}] :=
StreamPlot[
Evaluate[{v1/(1 + x^2 + y^2)^(3/2), v2/(1 + x^2 + y^2)^(
3/2)} /. {x -> u/Sqrt[1 - u^2 + v^2],
y -> v/Sqrt[1 - u^2 + v^2]}], {u, -1, 1}, {v, -1, 1}]
f[{2 x y, 1 + y - x^2 + y^2}, {x, y}]
So what on earth happens?
Sqrt[1 - u^2 - v^2]
, in the second versionSqrt[1 - u^2 + v^2]
, and, yes, I had to look very closely as well. I presume he's seeing a kernel crash. $\endgroup$