summaryrefslogtreecommitdiff
path: root/Working_Examples/154/DEPENDENCIES/ch1_3.sce
blob: ffc73c57d32fa4987e5445e0e9656ffd22528177 (plain)
1
2
3
4
5
6
7
8
9
10
clc
disp("Example 1.3")
printf("\n")
printf("Given")
disp("Energy is 9.25uJ")
disp("Charge to be transferred is 0.5uC")
E=9.25*10^-6;q=0.5*10^-6;
//1 volt is 1 joule per coulomb
V=E/q;
printf("Potential difference between two points a and b is %3.1fV\n",V)