summaryrefslogtreecommitdiff
path: root/1553/CH8/EX8.6
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH8/EX8.6')
-rw-r--r--1553/CH8/EX8.6/8Ex6.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1553/CH8/EX8.6/8Ex6.sce b/1553/CH8/EX8.6/8Ex6.sce
new file mode 100644
index 000000000..e206d90ee
--- /dev/null
+++ b/1553/CH8/EX8.6/8Ex6.sce
@@ -0,0 +1,13 @@
+//chapter 8 Ex 6
+
+clc;
+clear;
+close;
+//let sachin's age 1 years ago be 6x
+//by the given condition: equation is (6x+5)/(7x+5)=7/8;
+mycoeff=[-5 1];
+p=poly(mycoeff,"x","coeff");
+x=roots(p);
+mprintf("Present age of sachin is %d years",7*x+1);
+
+