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