summaryrefslogtreecommitdiff
path: root/1553/CH9/EX9.1/9Ex1.sce
blob: 1fe7e7039086dc8b35df77d242b2d99e994dd228 (plain)
1
2
3
4
5
6
7
8
9
10
11
//chapter 9 Ex 1

clc;
clear;
close;
b1=27; p1=2/3; //base and power
b2=1024; p2=(-4/5);
b3=8/125; p3=(-4/3);
//let the values to be found out be x, y and z
x=b1^p1; y=b2^p2; z=b3^p3;
mprintf("(i)x=%.0f\n(ii) y=%.4f\n(iii) z=%.2f",x,y,z);