Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 12 years ago

sagefan gravatar image

How to plot field lines in sage

I want to plot the field lines of an electric field, take for example that of an electric dipole. How can I do this in sage?

click to hide/show revision 2
reformulation of the question in mathematical terms

How to plot field lines in sage

I want to plot the field lines of an electric field, take for example that of an electric dipole. How can I do this in sage?

Edit: Perhaps my question was formulated too much in physicist slang... Mathematically I just want to plot the integral curves of a vector field.

click to hide/show revision 3
No.3 Revision

How to plot field lines in sage

I want to plot the field lines of an electric field, take for example that of an electric dipole. How can I do this in sage?

Edit: Perhaps my question was formulated too much in physicist slang... Mathematically I just want to plot the integral curves of a vector field.field for example: let r(x,y)=(x,y), E1=r|r|32 and E2(x,y)=E1(x1,y)

Then I want to plot the field lines of E=E1+E2

How to plot field lines in sage

I want to plot the field lines of an electric field, take for example that of an electric dipole. How can I do this in sage?

Edit: Perhaps my question was formulated too much in physicist slang... Mathematically I just want to plot the integral curves of a vector field for example: let r(x,y)=(x,y), E1=r|r|32 and E2(x,y)=E1(x1,y)

Then I want to plot the field lines of E=E1+E2

The field line plot should look similar to this one:

field line plot example

click to hide/show revision 5
fixed some typos in the example

How to plot field lines in sage

I want to plot the field lines of an electric field, take for example that of an electric dipole. How can I do this in sage?

Edit: Perhaps my question was formulated too much in physicist slang... Mathematically I just want to plot the integral curves of a vector field for example: let r(x,y)=(x,y), $\vec{E_1} = \frac{\vec{r}}{|r|^{\frac{3}{2}}}$ \frac{\vec{r}}{|r|^{3}}$ and E2(x,y)=E1(x1,y)

Then I want to plot the field lines of $\vec{E} = \vec{E_1} + - \vec{E_2}$

The field line plot should look similar to this one:

field line plot example

click to hide/show revision 6
No.6 Revision

How to plot field lines in sage

I want to plot the field lines of an electric field, take for example that of an electric dipole. How can I do this in sage?

Edit: Perhaps my question was formulated too much in physicist slang... Mathematically I just want to plot the integral curves of a vector field for example: let r(x,y)=(x,y), E1=r|r|3 and E2(x,y)=E1(x1,y)

Then I want to plot the field lines of E=E1E2

The field line plot should look similar to this one:

field line plot example

I think in mathematica this is called a stream plot: http://reference.wolfram.com/mathematica/ref/StreamPlot.html