blob: a92344ccf68b9b8295a79970522322c0b9e044b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//chapter 8 Ex 7
clc;
clear;
close;
//let abhay's age 10 years ago be x
//by the given condition: equation is x+16=3/7*(5x+16);
mycoeff=[-64 8];
p=poly(mycoeff,"x","coeff");
x=roots(p);
mprintf("Present age of abhay father is %d years",5*x+10);
|