From 21b4020078aa983f43d25eac1ca80ddba64e0b2c Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 11 Apr 2012 14:50:45 -0400 Subject: [PATCH] Add CoulombEField and CoulombEFields to ElectroMag.asy. --- asymptote/ElectroMag-test.asy | 5 +++-- asymptote/ElectroMag.asy | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/asymptote/ElectroMag-test.asy b/asymptote/ElectroMag-test.asy index cac334a..f80a024 100644 --- a/asymptote/ElectroMag-test.asy +++ b/asymptote/ElectroMag-test.asy @@ -22,8 +22,8 @@ import ElectroMag; real u = 1cm; Charge a = pCharge(center=(0.5u,2u)); -Charge b = aCharge(center=(0,0), q=1); -Charge c = nCharge(center=(-3u,0), q=-3); +Charge b = aCharge(center=(0,-0.5u), q=1); +Charge c = nCharge(center=(-3u,-0.5u), q=-3); Charge cs[] = {a,b,c}; Distance dab = Distance(b.center(), a.center(), scale=u, L="$r_1$"); Distance dbc = Distance(c.center(), b.center(), scale=u, L="$r_2$"); @@ -43,6 +43,7 @@ for (int i=0; i