{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lab 202 Data

# Lab 202 Data - PART 1 > clear all > diary'Lab202 to save...

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

PART 1 >> clear all >> diary ('Lab202'); % to save your work with file Lab202 >> diary on >> esp0= 8.85*10^-12; k=1/(4*pi*esp0); >> q1=9*10^-9 q1 = 9.0000e-009 >> >> syms x y z >> E= @(x,y,z) k*q1/((x-0.1)^2+(y-0.2)^2+(z-0.3)^2)^(3/2)* [x-0.1,y-0.2,z-0.3]; >> 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); Warning: Explicit integral could not be found. >> PIlow=int(int(Elow, x,-1, 1), y,-1,1); PIleft=int(int(Eleft, x,-1,1), z,-1,1); Warning: Explicit integral could not be found. PIleft=int(int(Eleft, x,-1,1), z,-1,1); Warning: Explicit integral could not be found. Warning: Explicit integral could not be found. >> PIleft=int(int(Eleft, x,-1,1), z,-1,1); Warning: Explicit integral could not be found. >> PIright = int(int(Eright,x,-1,1),z,-1,1); Warning: Explicit integral could not be found.

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

View Full Document
>> PIfront=int(int(Efront, y,-1,1),z,-1,1); Warning: Explicit integral could not be found. >> PIback=int(int(Eback, y,-1,1),z,-1,1); Warning: Explicit integral could not be found. >> vpa(PIup, 10) ans = 233.9349564 >> vpa(PIlow,10) ans = 121.2432412 >> vpa(PIleft,10) ans = 131.9684772 >> vpa(PIright,10) ans = 204.4187722 >> vpa(PIfront,10) ans =
180.4038897 >> vpa(PIback,10) ans = 144.9798159 >> All_PI = PIup+PIlow+PIleft+PIright+PIfront+PIback; >> vpa(All_PI,10) ans = 1016.949153 >> vpa(esp0*All_PI,5) ans = 0.000000009 PART 2 >> I= [.5,0,0]; J=[0,1,0]; K=[0,0,1]; >> >> vpa(PIup, 10) ans = 233.9349564 >> Eup=dot(K,E(x,y,1));

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

View Full Document
>> Elow=dot(-K, E(x,y,-1)); >> Eleft= dot(-J, E(x,-1,z)); >> Eright=dot(J, E(x,1,z)); >> PIfront=int(int(Efront, y,-1,1),z,-1,1); Warning: Explicit integral could not be found. >> Efront=dot(I, E(1,y,z)); >> Eback=dot(-I, E(-1,y,z)); >> PIlow=int(int(Elow, x,-1, 1), y,-1,1); Warning: Explicit integral could not be found. >> PIleft=int(int(Eleft, x,-1,1), z,-1,1); Warning: Explicit integral could not be found. >> PIright = int(int(Eright,x,-1,1),z,-1,1); Warning: Explicit integral could not be found. >> PIfront=int(int(Efront, y,-1,1),z,-1,1); Warning: Explicit integral could not be found. >> PIback=int(int(Eback, y,-1,1),z,-1,1); Warning: Explicit integral could not be found.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 21

Lab 202 Data - PART 1 > clear all > diary'Lab202 to save...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online