From: W. Trevor King Date: Wed, 1 Jul 2009 16:42:53 +0000 (-0400) Subject: Fixed trajectory plot in Young and Freedman v12 p21.86 solution. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bf05327c2af1ba8f0f743dc1f312bdad578e792f;p=course.git Fixed trajectory plot in Young and Freedman v12 p21.86 solution. --- 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