diff options
Diffstat (limited to '656/CH1/EX1.4/example1_4.sce')
-rw-r--r-- | 656/CH1/EX1.4/example1_4.sce | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/656/CH1/EX1.4/example1_4.sce b/656/CH1/EX1.4/example1_4.sce new file mode 100644 index 000000000..7e5b321c1 --- /dev/null +++ b/656/CH1/EX1.4/example1_4.sce @@ -0,0 +1,33 @@ +// i be the current in amperes i=2A
+
+// it flows for time t=10s
+
+// q be the total charge given by q=i*t
+
+i=2;
+
+t=10;
+
+q=i*t;
+
+// total charge is 20 coulombs
+
+// energy is 2.3KJ ( kilo joules)
+
+w=2.3*10^3;
+
+// voltage drop v in volts given by= v=w/q
+
+v=w/q;
+
+disp("v=")
+disp(v)
+units='Volts V'
+v=[string(v) units];
+disp(v)
+// in volts V
+
+
+
+// voltage drop is 115v
+
|