summaryrefslogtreecommitdiff
path: root/3648/CH16/EX16.3/Ex16_3.sce
blob: 417d056e1f1b3372b8b1f4b2c70a96bf942cffd3 (plain)
1
2
3
4
5
6
7
8
9
10

//Example 16_3
clc();
clear;
//To find the speed of an electron
e=1.6*10^-19    //Units in C
vab=45    //Units in V
m=9.11*10^-31      //Units in Kg
va=sqrt((2*e*vab)/m)     //Units in meters/sec
printf("The speed of the electron is Vab=%.2f meters/sec",va)