Let us evaluate value of 2 x3 - 6 x2 + 2 x - 1 for x = 3
$ poly = array ( 2 , -6 , 2 , -1 ) ; $ x = 3 ; $ n = count ( $ poly ) ; echo " Sign ▁ of ▁ polynomial ▁ is ▁ " , findSign ( $ poly , $ n , $ x ) ; ? >