summaryrefslogtreecommitdiff
path: root/3843/CH4/EX4.2/Ex4_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3843/CH4/EX4.2/Ex4_2.sce')
-rw-r--r--3843/CH4/EX4.2/Ex4_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3843/CH4/EX4.2/Ex4_2.sce b/3843/CH4/EX4.2/Ex4_2.sce
new file mode 100644
index 000000000..48c3e0550
--- /dev/null
+++ b/3843/CH4/EX4.2/Ex4_2.sce
@@ -0,0 +1,14 @@
+// Example 4_2
+clc;funcprot(0);
+// Given data
+P_in=5;// hp
+t=1;// hour
+// By assumption
+Q=0;// J
+delPE=0;// J
+delKE=0;// J
+
+// Calculation
+W=-P_in*t*(746)*(3600);// The work input in J
+delU=-W;// The increase in internal energy in J
+printf("\nThe increase in internal energy,delU=%1.3e J",delU);