summaryrefslogtreecommitdiff
path: root/797/CH2/EX2.5.s/2_05_solution.sce
diff options
context:
space:
mode:
Diffstat (limited to '797/CH2/EX2.5.s/2_05_solution.sce')
-rw-r--r--797/CH2/EX2.5.s/2_05_solution.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/797/CH2/EX2.5.s/2_05_solution.sce b/797/CH2/EX2.5.s/2_05_solution.sce
new file mode 100644
index 000000000..a52701952
--- /dev/null
+++ b/797/CH2/EX2.5.s/2_05_solution.sce
@@ -0,0 +1,11 @@
+//Solution 2-5
+WD=get_absolute_file_path('2_05_solution.sce')
+datafile=WD+filesep()+'2_05_example.sci'
+clc;
+exec(datafile)
+//conversion
+l = l / 100; //from [cm] to [m]
+L = L / 100; //from [cm] to [m]
+R = d_o / (2 * 100);
+mu = T * l / (4 * %pi**2 * R**3 * ndot / 60 * L);
+printf("Viscocity of fluid is measured to be %1.3f N.s/m^2", mu); \ No newline at end of file