summaryrefslogtreecommitdiff
path: root/1553/CH5/EX5.15/5Ex15.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH5/EX5.15/5Ex15.sce')
-rw-r--r--1553/CH5/EX5.15/5Ex15.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1553/CH5/EX5.15/5Ex15.sce b/1553/CH5/EX5.15/5Ex15.sce
new file mode 100644
index 000000000..b7227d0da
--- /dev/null
+++ b/1553/CH5/EX5.15/5Ex15.sce
@@ -0,0 +1,9 @@
+//chapter 5 Ex 15
+clc;
+clear;
+close;
+
+//let the value to be found out be z
+z=(1+sqrt(2))^2+(1-sqrt(2))^2;
+
+mprintf("The value of expression (x^2+y^2) is %.0f",z);