summaryrefslogtreecommitdiff
path: root/1553/CH9/EX9.1/9Ex1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH9/EX9.1/9Ex1.sce')
-rw-r--r--1553/CH9/EX9.1/9Ex1.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1553/CH9/EX9.1/9Ex1.sce b/1553/CH9/EX9.1/9Ex1.sce
new file mode 100644
index 000000000..1fe7e7039
--- /dev/null
+++ b/1553/CH9/EX9.1/9Ex1.sce
@@ -0,0 +1,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);