summaryrefslogtreecommitdiff
path: root/1553/CH4/EX4.28/4Ex28.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH4/EX4.28/4Ex28.sce')
-rw-r--r--1553/CH4/EX4.28/4Ex28.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1553/CH4/EX4.28/4Ex28.sce b/1553/CH4/EX4.28/4Ex28.sce
new file mode 100644
index 000000000..95a890548
--- /dev/null
+++ b/1553/CH4/EX4.28/4Ex28.sce
@@ -0,0 +1,10 @@
+//chapter 4 Ex 28
+
+clc;
+clear;
+close;
+sumsquares=117; product=54;
+Sum=sqrt(sumsquares+2*product); //from the formula (a+b)^2=a^2+b^2+2*a*b
+subtract=sqrt(sumsquares-2*product);
+value=Sum/subtract;
+mprintf("The value of (a+b)/(a-b)=%.0f",value);