Yes, you stop when there are all positive values. Feel free to message me at any time!
Tertre might have typoed, yet I think he forgot the 0x^2. This is really important! Check three just to make sure. Three should work.