checking for resemblance of x3 with x2 till two decimal places
$ m = $ res * 100 ; $ n = $ c * 100 ; $ m = floor ( $ m ) ; $ n = floor ( $ n ) ; if ( $ m == $ n ) break ; $ a = $ b ; $ b = $ c ; $ c = $ res ; if ( $ i > $ MAX_ITERATIONS ) { echo " Root ▁ cannot ▁ be ▁ found ▁ using ▁ Muller ' s ▁ method " ; break ; } } if ( $ i <= $ MAX_ITERATIONS ) echo " The ▁ value ▁ of ▁ the ▁ root ▁ is ▁ " . round ( $ res , 4 ) ; }