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 --- 944/CH3/EX3.1/example3_1_TACC.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 944/CH3/EX3.1/example3_1_TACC.sce (limited to '944/CH3/EX3.1') diff --git a/944/CH3/EX3.1/example3_1_TACC.sce b/944/CH3/EX3.1/example3_1_TACC.sce new file mode 100755 index 000000000..174d4cbda --- /dev/null +++ b/944/CH3/EX3.1/example3_1_TACC.sce @@ -0,0 +1,16 @@ +//example 3.1 + +clear; +clc; + +//given: +V1=14;//initial volume of cylinder in m3 +V2=9;//final volume of cylinder in m3 +P=2000;//pressure during the operation in N/m2 +U=(-6000);//internal energy of the system in J + +//to find energy transfered in form of heat: +W=-P*(V2-V1);//work done during the operation in J +Q=U-W;//energy tranfered in form of heat in J +printf("energy tranfered in form of heat is %f J",Q); + \ No newline at end of file -- cgit