diff options
Diffstat (limited to '1553/CH4/EX4.13/4Ex13.sce')
-rw-r--r-- | 1553/CH4/EX4.13/4Ex13.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/1553/CH4/EX4.13/4Ex13.sce b/1553/CH4/EX4.13/4Ex13.sce new file mode 100644 index 000000000..79286086a --- /dev/null +++ b/1553/CH4/EX4.13/4Ex13.sce @@ -0,0 +1,25 @@ +//Chapter 4 Ex 13
+
+clc;
+clear;
+close;
+
+//(i)
+a=poly(0,'a');
+b1=a/(3/4); //equation(1)
+b2=(22-(8*a))/5; //equation(2)
+for a=1:0.1:10
+ if (a/(3/4))==((22-(8*a))/5) then
+ break;
+ end
+end
+mprintf("(i)The value of a is %.1f",a);
+
+//(ii)
+x=poly(0,'x');
+for x=1:10
+ if ((x/4)-((x-3)/6))==1 then
+ break;
+ end
+end
+mprintf("\n(ii) The value of x is %.0f",x);
|