diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1442/CH3 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1442/CH3')
-rwxr-xr-x | 1442/CH3/EX3.3/3_3.sce | 10 | ||||
-rwxr-xr-x | 1442/CH3/EX3.4/3_4.sce | 15 | ||||
-rwxr-xr-x | 1442/CH3/EX3.5/3_5.sce | 16 | ||||
-rwxr-xr-x | 1442/CH3/EX3.6/3_6.sce | 7 | ||||
-rwxr-xr-x | 1442/CH3/EX3.7/3_7.sce | 11 |
5 files changed, 59 insertions, 0 deletions
diff --git a/1442/CH3/EX3.3/3_3.sce b/1442/CH3/EX3.3/3_3.sce new file mode 100755 index 000000000..6c08d367e --- /dev/null +++ b/1442/CH3/EX3.3/3_3.sce @@ -0,0 +1,10 @@ +clc
+//initialisation of variables
+m= 5 //kg
+g= 9.8 //m/sec^2
+k= 500 //N/m
+//CALCULATIONS
+x= m*g/k
+W= -m*g*x
+//RESULTS
+printf ('work interaction of spring = %.2f J',W)
diff --git a/1442/CH3/EX3.4/3_4.sce b/1442/CH3/EX3.4/3_4.sce new file mode 100755 index 000000000..4c8c939ee --- /dev/null +++ b/1442/CH3/EX3.4/3_4.sce @@ -0,0 +1,15 @@ +clc
+//initialisation of variables
+m= 500 //kg
+V= 50 //L
+P= 700 //kPa
+T= 25 //C
+P0= 100 //kPa
+g= 9.8 //m/sec^2
+A= 200 //cm^2
+V1= 100 //L
+//CALCULATIONS
+pe= P0*10^3+(m*g/(A*10^-4))
+W= pe*(V1-V)*10^-6
+//RESULTS
+printf ('work of the gas = %.2f kJ',W)
diff --git a/1442/CH3/EX3.5/3_5.sce b/1442/CH3/EX3.5/3_5.sce new file mode 100755 index 000000000..9e030a364 --- /dev/null +++ b/1442/CH3/EX3.5/3_5.sce @@ -0,0 +1,16 @@ +clc
+//initialisation of variables
+W= 5 //kJ
+Q= 23 //kJ
+Q1= -50 //kJ
+W1= 0 //kJ
+//CALCULATIONS
+E1= Q-W
+E2= Q1-W1
+E3= -(E1+E2)
+W3= -E3
+//RESULTS
+printf ('energy change in process 1 = %.f kJ',E1)
+printf ('\n energy change in process 2 = %.f kJ',E2)
+printf ('\n energy change in process 3 = %.f kJ',E3)
+printf ('\n Work in third process = %.f kJ',W3)
diff --git a/1442/CH3/EX3.6/3_6.sce b/1442/CH3/EX3.6/3_6.sce new file mode 100755 index 000000000..a004c2877 --- /dev/null +++ b/1442/CH3/EX3.6/3_6.sce @@ -0,0 +1,7 @@ +clc
+//initialisation of variables
+V= 12 //km/L
+//CALCULATIONS
+MPG= V*3.7854/1.609
+//RESULTS
+printf ('car mileage = %.2f MPG',MPG)
diff --git a/1442/CH3/EX3.7/3_7.sce b/1442/CH3/EX3.7/3_7.sce new file mode 100755 index 000000000..a2fed319d --- /dev/null +++ b/1442/CH3/EX3.7/3_7.sce @@ -0,0 +1,11 @@ +clc
+//initialisation of variables
+p= 800 //atm
+P= 10000 //psi
+x= 14.696 //psi/atm
+//CALCULATIONS
+P1= p*x
+//RESULTS
+if (P1>P) then
+disp("Salesman is honest")
+
|