{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lab 202 complete - QUESTION 1 > clear all diary'Lab202...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
QUESTION 1 >> clear all diary ('Lab202'); diary on esp0 = 8.85*10^-12; k= 1/(4*pi*esp0); a=1; q1= 9*10^-9; syms x y z; E = @(x,y,z) k*q1/((x)^2 + (y)^2 + (z)^2)^(3/2)*[x,y,z]; I = [1,0,0]; J = [0,1,0]; K = [0,0,1]; Eup = dot(K, E(x,y,1)); Elow = dot(-K, E(x,y,-1)); Eleft = dot(-J, E(x,-1, z)); Eright = dot(J, E(x,1,z)); Efront = dot(I, E(1,y,z)); Eback = dot (-I, E(-1,y,z)); PIup = int(int (Eup, x, -1,1),y,-1,1); PIlow = int(int (Elow, x, -1,1),y,-1,1); PIleft = int(int (Eleft, x, -1,1),z,-1,1); PIright = int(int (Eright, x, -1,1),z,-1,1); PIfront = int(int (Efront, y, -1,1),z,-1,1); PIback = int(int (Eback, y, -1,1),z,-1,1); vpa(PIup, 10) vpa(PIlow, 10) vpa(PIleft, 10) vpa(PIright, 10) vpa(PIfront, 10) vpa(PIback, 10) All_PI = PIup + PIlow + PIleft + PIright + PIfront + PIback; vpa(All_PI, 10) vpa(esp0*All_PI, 5) Warning: Explicit integral could not be found. Warning: Explicit integral could not be found. Warning: Explicit integral could not be found. Warning: Explicit integral could not be found. Warning: Explicit integral could not be found. Warning: Explicit integral could not be found. ans =
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
169.4915254 ans = 169.4915254 ans = 169.4915254 ans = 169.4915254 ans = 169.4915254 ans = 169.4915254 ans = 1016.949153 ans = 0.000000009 QUESTION 2 >> clear all diary ('Lab202'); diary on esp0 = 8.85*10^-12; k= 1/(4*pi*esp0); a=1; q1= 9*10^-9; syms x y z;
Image of page 2
E = @(x,y,z) k*q1/((x-0.5)^2 + (y)^2 + (z)^2)^(3/2)*[x- 0.5,y,z]; I = [1,0,0]; J = [0,1,0]; K = [0,0,1]; Eup = dot(K, E(x,y,1)); Elow = dot(-K, E(x,y,-1)); Eleft = dot(-J, E(x,-1, z)); Eright = dot(J, E(x,1,z)); Efront = dot(I, E(1,y,z)); Eback = dot (-I, E(-1,y,z)); PIup = int(int (Eup, x, -1,1),y,-1,1); PIlow = int(int (Elow, x, -1,1),y,-1,1); PIleft = int(int (Eleft, x, -1,1),z,-1,1); PIright = int(int (Eright, x, -1,1),z,-1,1); PIfront = int(int (Efront, y, -1,1),z,-1,1); PIback = int(int (Eback, y, -1,1),z,-1,1); vpa(PIup, 10) vpa(PIlow, 10) vpa(PIleft, 10) vpa(PIright, 10) vpa(PIfront, 10) vpa(PIback, 10) All_PI = PIup + PIlow + PIleft + PIright + PIfront + PIback; vpa(All_PI, 10) vpa(esp0*All_PI, 5) Warning: Explicit integral could not be found. Warning: Explicit integral could not be found. Warning: Explicit integral could not be found. Warning: Explicit integral could not be found.
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern