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 /858/CH2/EX2.26/example_26.sce | |
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 '858/CH2/EX2.26/example_26.sce')
-rwxr-xr-x | 858/CH2/EX2.26/example_26.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/858/CH2/EX2.26/example_26.sce b/858/CH2/EX2.26/example_26.sce new file mode 100755 index 000000000..f763adc9c --- /dev/null +++ b/858/CH2/EX2.26/example_26.sce @@ -0,0 +1,12 @@ +clc
+clear
+printf("example 2.26 page number 80\n\n")
+
+//to find hardness of water
+m_MgSO4=90 //in ppm
+MgSO4_parts=120;
+CaCO3_parts=100;
+
+hardness=(CaCO3_parts/MgSO4_parts)*m_MgSO4;
+
+printf("hardness of water = %f mg/l",hardness)
|