{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

LAB 202

# LAB 202 - LAB 202 Mehar Ghei LABORATORY EXPERIMENT REPORT...

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

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

View Full Document

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.

Unformatted text preview: LAB 202 Mehar Ghei LABORATORY EXPERIMENT REPORT Name: Mehar Ghei Group Members: Yvonne Chen, Marvin Castellon, Jeremy Buhain Experiment Date: Thursday, February 10 th Course Name: PHYS 121A Section: H02 Instructor: Beidi He LABORATORY #202 Numerical Verification OF Gauss’s Law 1. OBJECTIVE Evaluate Gauss’s Law numerically for difference surfaces and verify that the formula for an enclosed charge using MATLAB. 2. THEORETICAL BACKGROUND Electric Flux = * * = ɸE E AcosθE dA Qε0 3. EQUIPMENT a. MATLAB software 4. COLLECTED DATA 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)); Page 1 of 16 LAB 202 Mehar Ghei 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 = 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 Page 2 of 16 LAB 202 Mehar Ghei >> 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....
View Full Document

{[ snackBarMessage ]}

### Page1 / 16

LAB 202 - LAB 202 Mehar Ghei LABORATORY EXPERIMENT REPORT...

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

View Full Document
Ask a homework question - tutors are online