diff options
Diffstat (limited to '260/CH9/EX9.7/9_7.sce')
-rw-r--r-- | 260/CH9/EX9.7/9_7.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/260/CH9/EX9.7/9_7.sce b/260/CH9/EX9.7/9_7.sce new file mode 100644 index 000000000..28ed4015f --- /dev/null +++ b/260/CH9/EX9.7/9_7.sce @@ -0,0 +1,21 @@ +//Eg-9.7
+//pg-403
+
+clc
+clear
+
+p=6.5;
+n = 6;
+a = 0.5;
+prodd=1;
+
+for i = 1:n
+ prodd = prodd*(p-i);
+end
+
+req=prodd*(22/7)^.5
+
+disp("required value")
+disp(req)
+
+printf('\n\n The minor difference in the answer is because of using the value of 22/7 in the place of pi\n')
\ No newline at end of file |