lab 212 codes

# lab 212 codes - ratio_theory=e/me ratio_exper=v(r*B...

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

Xexp=[2 2.8 3 4 5 6]*10^-2*cosd(15); Yexp=[0.4 0.6 0.7 1.1 1.7 2.4]*10^-2; e=1.6*10^-19; me=9.11*10^-31; N=320; R=6.8*10^-2; I=0.5; d=5.2*10^-2; Vp=3*10^3; B=8.992*10^-7*N*I/R; E=0.77*Vp/d; v=E/B; v x=0:0.002:0.1;y=-0.4:0.005:0.4; r=5.6504888888*10^-2; x=sqrt(2*y.*r-y.^2); plot(x,y,x,-y,Xexp,Yexp, 'o' ) ratio_theory=e/me ratio_exper=v/(r*B) percent_error=(ratio_exper-ratio_theory)/ratio_theory*100 x=0:0.002:0.1;y=-0.4:0.005:0.4; r=5.6504888888*10^-2; x=sqrt(2*y.*r-y.^2); plot(x,y,x,-y,Xexp,Yexp,'o')

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: ratio_theory=e/me ratio_exper=v/(r*B) percent_error=(ratio_exper-ratio_theory)/ratio_theory*100 v = 2.0996e+007 Warning: Imaginary parts of complex X and/or Y arguments ignored Warning: Imaginary parts of complex X and/or Y arguments ignored ratio_theory = 1.7563e+011 ratio_exper = 1.7563e+011 percent_error =-0.0032 >> v=E/B; v v = 2.0996e+007 0.01 0.02 0.03 0.04 0.05 0.06-0.4-0.3-0.2-0.1 0.1 0.2 0.3 0.4...
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

lab 212 codes - ratio_theory=e/me ratio_exper=v(r*B...

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

View Full Document
Ask a homework question - tutors are online