summaryrefslogtreecommitdiff
path: root/1322/CH15/EX15.12/117ex2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1322/CH15/EX15.12/117ex2.sce')
-rwxr-xr-x1322/CH15/EX15.12/117ex2.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1322/CH15/EX15.12/117ex2.sce b/1322/CH15/EX15.12/117ex2.sce
new file mode 100755
index 000000000..3d951719e
--- /dev/null
+++ b/1322/CH15/EX15.12/117ex2.sce
@@ -0,0 +1,16 @@
+
+clear;
+clc;
+close;
+n=poly(0,'n');
+p1=1/(n-2);
+p2=1/(n-3);
+p=p1+p2;
+q=2/n;
+//given p=q
+ z1=numer(p)*denom(q);
+ z2=numer(q)*denom(p);
+//As,z1=z2. cancel the terms common on both sides
+ a=z1-z2;
+ n=roots(a)
+