diff options
Diffstat (limited to 'Working_Examples/154/DEPENDENCIES/ch1_4.sce')
-rwxr-xr-x | Working_Examples/154/DEPENDENCIES/ch1_4.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Working_Examples/154/DEPENDENCIES/ch1_4.sce b/Working_Examples/154/DEPENDENCIES/ch1_4.sce new file mode 100755 index 0000000..4a00b66 --- /dev/null +++ b/Working_Examples/154/DEPENDENCIES/ch1_4.sce @@ -0,0 +1,14 @@ +clc
+disp("Example 1.4")
+printf("\n")
+printf("Given")
+disp("Potential difference is 50V")
+disp("Charge per minute is 120C/min")
+V=50;x=120;
+//As Electrical energy is to be calculated charge per minute is to be converted in charge per second
+//Charge per second is nothing but the current
+i=x/60;
+P=i*V;
+//Since is 1W=1J/s
+printf("Rate of energy conversion is %dJ/s\n",P)
+
|