blob: c3dfb8d95e9c52246eb16e3824ba2dbffd66805a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//chapter 23 Ex 4
clc;
clear;
close;
//(i)
n1=3; n2=5; n3=25; n4=27;
ans1=(log(n1)/log(n2))*(log(n3)/log(n4));
mprintf("The answer is %.2f",ans1);
//(ii)
n5=27; n6=9; n7=9; n8=27;
ans2=(log(n5)/log(n6))-(log(n7)/log(n8));
mprintf("\nThe answer is %.2f",ans2);
|