diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3831/CH17/EX17.7 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3831/CH17/EX17.7')
-rw-r--r-- | 3831/CH17/EX17.7/Ex17_7.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/3831/CH17/EX17.7/Ex17_7.sce b/3831/CH17/EX17.7/Ex17_7.sce new file mode 100644 index 000000000..ffe32aff4 --- /dev/null +++ b/3831/CH17/EX17.7/Ex17_7.sce @@ -0,0 +1,15 @@ +// Example 17_7
+clc;funcprot(0);
+// Given data
+m_m=0.0300;// kg
+m_h=70.0;// kg
+m_e=4000;// kg
+
+// Calculation
+Hr_m=241*(m_m^(-0.25));// Beats/min
+Hr_h=241*(m_h^(-0.25));// Beats/min
+Hr_e=241*(m_e^(-0.25));// Beats/min
+Br_m=54*(m_m^(-0.25));// Beats/min
+Br_h=54*(m_h^(-0.25));// Beats/min
+Br_e=54*(m_e^(-0.25));// Beats/min
+printf("\nThe heartbeat rates of the mouse, human, and elephant are\n(Heartbeat rate)_mouse=%3.0f Beats/min \n(Heartbeat rate)_house=%2.1f Beats/min \n(Heartbeat rate)_elephant=%2.1f Beats/min \nThe breathing rates of the mouse, human, and elephant are \n(Breathing rate)_mouse=%3.0f Breaths/min \n(Breathing rate)_human=%2.1f Breaths/min \n(Breathing rate)_elephant=%1.2f Breaths/min",Hr_m,Hr_h,Hr_e,Br_m,Br_h,Br_e);
|