diff options
Diffstat (limited to '656/CH1/EX1.6/example1_6.sce')
-rw-r--r-- | 656/CH1/EX1.6/example1_6.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/656/CH1/EX1.6/example1_6.sce b/656/CH1/EX1.6/example1_6.sce new file mode 100644 index 000000000..15db24387 --- /dev/null +++ b/656/CH1/EX1.6/example1_6.sce @@ -0,0 +1,24 @@ +p=100;
+
+t=2*3600;
+
+disp("t=")
+disp(t)
+// in seconds
+disp("sec")
+
+
+e=p*t;
+
+disp("e=")
+disp(e)
+units='Joules J'
+e1=[string(e) units];
+disp(e1)
+// in joules
+
+
+// energy is 720000joules
+
+
+
|