From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2873/CH4/EX4.2/Ex4_2.jpg | Bin 0 -> 116994 bytes 2873/CH4/EX4.2/Ex4_2.sce | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100755 2873/CH4/EX4.2/Ex4_2.jpg create mode 100755 2873/CH4/EX4.2/Ex4_2.sce (limited to '2873/CH4/EX4.2') diff --git a/2873/CH4/EX4.2/Ex4_2.jpg b/2873/CH4/EX4.2/Ex4_2.jpg new file mode 100755 index 000000000..98b599766 Binary files /dev/null and b/2873/CH4/EX4.2/Ex4_2.jpg differ diff --git a/2873/CH4/EX4.2/Ex4_2.sce b/2873/CH4/EX4.2/Ex4_2.sce new file mode 100755 index 000000000..7e71022dd --- /dev/null +++ b/2873/CH4/EX4.2/Ex4_2.sce @@ -0,0 +1,21 @@ +// Display mode +mode(0); +// Display warning for floating point exception +ieee(1); +clear; +clc; +disp("Engineering Thermodynamics by Onkar Singh Chapter 4 Example 2") +T1=(400+273);//temperature of source in K +T2=(15+273);//temperature of sink in K +W=200;//work done in KJ +disp("in carnot engine from thermodynamics temperature scale") +disp("Q1/Q2=T1/T2") +disp("W=Q1-Q2=200 KJ") +disp("from above equations Q1 in KJ is given by") +disp("Q1=(200*T1)/(T1-T2)") +Q1=(200*T1)/(T1-T2) +disp("and Q2 in KJ") +disp("Q2=Q1-200") +Q2=Q1-200 +disp("so heat supplied(Q1) in KJ") +Q1 -- cgit