Programming practice

Bisection method — Chapter 2

Fix the sign test and midpoint update.

Language: JavaScript

Student code

Feedback

Corrected code