blob: 1ea0868921967752f8f33394813d977fdee8207b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clc
clear
//Input data
v=(5*10^6)//Velocity of the electron in m/s
E=2000//Intensity of electric field in N/C
d=0.06//Distance in m
e=(1.6*10^-19)//Charge of the electron in C
m=(9.1*10^-31)//Mass of the electron in kg
//Calculations
y=((-e*E*d^2)/(2*m*v^2))*100//Vertical displacement of the electron when it just leaves the electric field in cm
//Output
printf('Vertical displacement of the electron when it just leaves the electric field is %3.2f cm',y)
|