From: W. Trevor King Date: Wed, 11 Apr 2012 18:50:45 +0000 (-0400) Subject: Add CoulombEField and CoulombEFields to ElectroMag.asy. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=21b4020078aa983f43d25eac1ca80ddba64e0b2c;p=course.git Add CoulombEField and CoulombEFields to ElectroMag.asy. --- 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