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