solved the floating values comparison problem using fabs(b[0] - correct_value)<0.001