Iterated Logarithm log * ( n ) | Recursive PhP program to find value of Iterated Logarithm ; Driver code
< ? php function _log ( $ x , $ base ) { return ( int ) ( log ( $ x ) / log ( $ base ) ) ; } function recursiveLogStar ( $ n , $ b ) { if ( $ n > 1.0 ) return 1.0 + recursiveLogStar ( _log ( $ n , $ b ) , $ b ) ; else return 0 ; } $ n = 100 ; $ base = 5 ; echo " Log * ( " ▁ , ▁ $ n ▁ , ▁ " ) " , " ▁ = ▁ " , recursiveLogStar ( $ n , $ base ) , " STRNEWLINE " ; ? >