Solution (source code)

= Solution

The <Newton root-finding iteration> gives \b[$x_1=0-(-1000)/1=1000$].