blob: 5678ba5b3a081425f7a183798ec703551434a8d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clc;clear;
//Example 1.7
//Calculation of the total energy
//given values
r=0.528*10^-10;//radius of the orbit in m
q=-1.6*10^-19;//charge on electron in C
Q=1.6*10^-19;//charge on Hydrogen nucleus in C
Eo=8.854*10^-12;//permittivity in free space in F/m
//calculation
E=(q*Q)/(8*3.14*Eo*r);//
disp(E,'The total energy(in J) is');
E1=E/(1.6*10^-19);//
disp(E1,'The total energy(in eV) is')
|