blob: 9d0424ca9f602e26a151f17a580ca4c3ccf7661f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear all
clc
close
qm=10*1e-6;//q/m ratio in C/kg
E=8*1e5;//Electric field in V/m
g=9.8;//Universal gravitational constant
y=-1;//in meters
t=sqrt(-2*y/g);
//Calculation of separation distance between particles
x=(qm*E*t^2)/2;
printf('Distance of separation between particles in %f m',2*x)
|