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 --- 2168/CH5/EX5.3/Chapter5_example3.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 2168/CH5/EX5.3/Chapter5_example3.sce (limited to '2168/CH5/EX5.3') diff --git a/2168/CH5/EX5.3/Chapter5_example3.sce b/2168/CH5/EX5.3/Chapter5_example3.sce new file mode 100755 index 000000000..8275fb25c --- /dev/null +++ b/2168/CH5/EX5.3/Chapter5_example3.sce @@ -0,0 +1,15 @@ + +clc +clear +//Input data +//Cv=0.125+0.000005T where Cv is Specific heat at constant volume and T is the temperature in K +R=28.9//Characteristic gas constant in mkg/kg/degree C +T=[100+273,50+273]//Temperature in K +J=427//Mechanical equivalent of heat in kg.m/kcal + +//Calculations +function y=f(x),y=0.125+(0.00005*x),endfunction +I=J*intg(303,373,f) + +//Output +printf('The work done is %i m.kg/kg of gas',I) -- cgit