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 --- 1388/CH4/EX4.1/4_1.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 1388/CH4/EX4.1/4_1.sce (limited to '1388/CH4/EX4.1') diff --git a/1388/CH4/EX4.1/4_1.sce b/1388/CH4/EX4.1/4_1.sce new file mode 100755 index 000000000..6ce80fe9a --- /dev/null +++ b/1388/CH4/EX4.1/4_1.sce @@ -0,0 +1,22 @@ +clc +//initialisation of variables +T = 100 //C +T1= 25 //C +T2= 150 //C +T3= 357 //C +T4= 500 //C +T5= 2000 //C +T6= 5*10^6 +T7= 1000 //C +//CALCULATIONS +e= (T-T1)/(T+273) +e1= (T2-T1)/(273+T2) +e2= (T3-T)/(273+T3) +e3= (T5-T4)/(T5+273) +e4= (T6-T7)/T6 +//RESULTS +printf (' maximum efficiency = %.2f ',e) +printf (' \n maximum efficiency = %.2f ',e1) +printf (' \n maximum efficiency = %.2f ',e2) +printf (' \n maximum efficiency = %.2f ',e3) +printf (' \n maximum efficiency = %.2f ',e4) -- cgit