diff options
Diffstat (limited to '1553/CH5/EX5.22/5Ex22.sce')
-rw-r--r-- | 1553/CH5/EX5.22/5Ex22.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/1553/CH5/EX5.22/5Ex22.sce b/1553/CH5/EX5.22/5Ex22.sce new file mode 100644 index 000000000..67d644218 --- /dev/null +++ b/1553/CH5/EX5.22/5Ex22.sce @@ -0,0 +1,10 @@ +//chapter 5 Ex 22
+clc;
+clear;
+close;
+
+//let the value to be found out be z
+x=(sqrt(5)+sqrt(3))/(sqrt(5)-sqrt(3));
+y=(sqrt(5)-sqrt(3))/(sqrt(5)+sqrt(3))
+z=x^2+y^2;
+mprintf("The value of expression (x^2+y^2)is %.0f",z);
|