怎么在矢量场图里面加上流线(Mathematica)?

时间:2026-02-16 23:04:27

1、矢量场{y, -x}图像如下:

VectorPlot[{y, -x}, {x, -3, 3}, {y, -3, 3}, Axes -> False, Frame -> False]

怎么在矢量场图里面加上流线(Mathematica)?

2、加上10条流线图,就可以看出这个矢量场的走势是一组同心圆:

VectorPlot[{y, -x}, {x, -3, 3}, {y, -3, 3}, Axes -> False, 

 Frame -> False, StreamPoints -> 10, StreamStyle -> Green]

怎么在矢量场图里面加上流线(Mathematica)?

3、矢量场{y^2 + x, y^2 - x}的图像比较混乱,所以画上36条流线。

怎么在矢量场图里面加上流线(Mathematica)?

4、{y^2 + x, x^2 + y}:

VectorPlot[{y^2 + x, x^2 + y}, {x, -3, 3}, {y, -3, 3}, Axes -> False, 

 Frame -> False, StreamPoints -> 36, StreamStyle -> Green]

怎么在矢量场图里面加上流线(Mathematica)?

5、扩大画图范围:

VectorPlot[{y^2 + x, x^2 + y}, {x, -10, 10}, {y, -10, 10}, 

 Axes -> False, Frame -> False, StreamPoints -> 36, 

StreamColorFunction -> Hue]

怎么在矢量场图里面加上流线(Mathematica)?

6、彩色流线:

VectorPlot[{y^2 + x, x^2 + y}, {x, -10, 10}, {y, -10, 10}, 

 Axes -> False, Frame -> False, StreamPoints -> 36, 

 StreamColorFunction -> Hue]

怎么在矢量场图里面加上流线(Mathematica)?

© 2026 智德知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com