From: W. Trevor King Date: Fri, 20 May 2011 18:20:11 +0000 (-0400) Subject: Add aCharge tests to ElectroMag-test.asy. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d85a35c2c0c01b893c7aedd8f7ee2154c7ce7448;p=course.git Add aCharge tests to ElectroMag-test.asy. --- diff --git a/asymptote/ElectroMag-test.asy b/asymptote/ElectroMag-test.asy index 8cf5617..c37c9cb 100644 --- a/asymptote/ElectroMag-test.asy +++ b/asymptote/ElectroMag-test.asy @@ -22,7 +22,7 @@ import ElectroMag; real u = 1cm; Charge a = pCharge(center=(0.5u,2u)); -Charge b = pCharge(center=(0,0)); +Charge b = aCharge(center=(0,0), q=1); Charge c = nCharge(center=(-3u,0), q=-3); Charge cs[] = {a,b,c}; Distance dab = Distance(b.center, a.center, scale=u, L="$r_1$"); @@ -45,8 +45,11 @@ for (int i=0; i