diff options
Diffstat (limited to '1553/CH8/EX8.5')
-rw-r--r-- | 1553/CH8/EX8.5/8Ex5.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1553/CH8/EX8.5/8Ex5.sce b/1553/CH8/EX8.5/8Ex5.sce new file mode 100644 index 000000000..2832a8a5d --- /dev/null +++ b/1553/CH8/EX8.5/8Ex5.sce @@ -0,0 +1,13 @@ +//chapter 8 Ex 5
+
+clc;
+clear;
+close;
+//let son's age 8 years ago be x
+//by the given condition: equation is 2(x+16)=4x+16;
+mycoeff=[-16 2];
+p=poly(mycoeff,"x","coeff");
+x=roots(p);
+mprintf("Present age of rohit is %d years",4*x+8);
+
+
|