From d85a35c2c0c01b893c7aedd8f7ee2154c7ce7448 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 20 May 2011 14:20:11 -0400 Subject: [PATCH] Add aCharge tests to ElectroMag-test.asy. --- asymptote/ElectroMag-test.asy | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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