// Chapter 23 Ex1 clc; clear; close; //(i) n1=27; n2=3; ans1=log(n1)/log(n2); mprintf("log 27 to the base 3 is %d",ans1); //(ii) n3=(1/343); n4=7; ans2=log(n3)/log(n4); mprintf("\nlog (1/343) to the base 7 is %d",ans2); //(iii) n5=0.01; n6=100; ans3=log(n5)/log(n6); mprintf("\nlog 0.01 to the base 100 is %.0f",ans3);