Hi,

you use the wrong codomain for the x coordinate. See the lines highlighted in red.



SubOptimal