summaryrefslogtreecommitdiff
path: root/2939/CH1/EX1.2/Ex1_2.sce
blob: 692c4b47dbeccce4506a689f29ae60345b008096 (plain)
1
2
3
4
5
6
7
8
9
//Ex1_2

clc;
//Given:
energy=2*10^-6;
c=2.5*10^-8;// velocity of light
//solution:
v=energy/c;// potential
printf("The potential in V is = %f ",v)