From bf05327c2af1ba8f0f743dc1f312bdad578e792f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 1 Jul 2009 12:42:53 -0400 Subject: [PATCH] Fixed trajectory plot in Young and Freedman v12 p21.86 solution. --- .../Young_and_Freedman_12/problem21.86.tex | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/latex/problems/Young_and_Freedman_12/problem21.86.tex b/latex/problems/Young_and_Freedman_12/problem21.86.tex index 515955e..7933349 100644 --- a/latex/problems/Young_and_Freedman_12/problem21.86.tex +++ b/latex/problems/Young_and_Freedman_12/problem21.86.tex @@ -18,8 +18,8 @@ import Mechanics; import ElectroMag; real u = 1cm; -real L = 3; -real dy = 1; +real L = 5; +real dy = 2; int n=3; Charge q = aCharge((0,0)*u, q=1, L="$q$"); @@ -27,26 +27,29 @@ Vector v = Velocity(q.center, L="$v$"); Wire top_plate = Wire((0,0.5*dy)*u, (L,.5*dy)*u); Wire bottom_plate = Wire((0,-.5*dy)*u, (L,-.5*dy)*u); -path p = q.center; -real x; -real y; -for (int i=0; i<=100; i+= 1) { - x = q.center.x+L*i/n; - y = q.center.y+.4*dy*(x/L)**2; - p = p..((x,y)*u); -} -draw(p, grey); - Vector E; for (int i=0; i