{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lab 202 complete

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

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

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 =

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

View Full Document
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;
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.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern