blob: 2b0a7d4e7678dd48422efe62b3d4b5524a0ab1e0 (
plain)
1
2
3
4
5
6
7
8
9
|
//Example 16_2
clc();
clear;
//To calculate the speed of the proton
q=1.6*10^-19 //Units in C
vab=45 //Units in V
m=1.67*10^-27 //Units in Kg
va=sqrt((2*q*vab)/m) //Units in meters/sec
printf("The speed of the proton is Vab=%.2f meters/sec",va)
|