1 2 3 4 5 6 7 8 9
clc //initialisation of variables r1=2 r=2 rv=0.75 //CALCULATIONS g=log(r1/rv)/log(r) //results printf(' \n gamma value= % 1f ',g)