summaryrefslogtreecommitdiff
path: root/Working_Examples/154/DEPENDENCIES/ch1_3.sce
diff options
context:
space:
mode:
Diffstat (limited to 'Working_Examples/154/DEPENDENCIES/ch1_3.sce')
-rwxr-xr-xWorking_Examples/154/DEPENDENCIES/ch1_3.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/Working_Examples/154/DEPENDENCIES/ch1_3.sce b/Working_Examples/154/DEPENDENCIES/ch1_3.sce
new file mode 100755
index 0000000..ffc73c5
--- /dev/null
+++ b/Working_Examples/154/DEPENDENCIES/ch1_3.sce
@@ -0,0 +1,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)