diff options
Diffstat (limited to '1427/CH5/EX5.21/5_21.sce')
-rw-r--r-- | 1427/CH5/EX5.21/5_21.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/1427/CH5/EX5.21/5_21.sce b/1427/CH5/EX5.21/5_21.sce new file mode 100644 index 000000000..34f374a7d --- /dev/null +++ b/1427/CH5/EX5.21/5_21.sce @@ -0,0 +1,8 @@ +//ques-5.21
+//Calculating pH of given NaOH solution
+clc
+M=10^-8;//molarity of NaOH
+D=M^2+4*(10^-14);//discriminant
+x=(-M+sqrt(D))/2;//content of hydrogen ion
+p=-log10(x);
+printf("pH of given NaOH sample is %.2f.",p);
|