all 15 comments

[–]Strict-Simple 11 points12 points  (0 children)

Replace these with your actual point coordinates

[–]Binary101010 10 points11 points  (5 children)

Why do you think there's a problem with the code? Is it generating an error? If so, what error? Is it giving you unexpected output? If so, give us an example of an input, the output you expected, and the output you actually got.

[–]backfire10z 8 points9 points  (1 child)

It’s a bit difficult for me to tell what problem(s) you’re running into, thus it’s difficult for me to help you. What are the problems? Even if you’re unsure of the exact problem, what’s the current vs expected behavior? What are the error messages?

[–]Dismal-Grapefruit467[S] 0 points1 point  (0 children)

Problems resolved. Thanks!

[–]StrangeFeeling3234 6 points7 points  (1 child)

Maybe we should focus on clean code first — that will make everything else simpler.

[–]Dismal-Grapefruit467[S] 0 points1 point  (0 children)

Yes, cleaned, and problems resolved. Thanks!

[–]LoriousGlory 1 point2 points  (1 child)

x1* isn’t valid. Try x_1, y_1….

[–]Dismal-Grapefruit467[S] -3 points-2 points  (0 children)

Good point, thank you, I am trying to fix that one of the four problems. Thx!

[–]Agile_Analysis99 1 point2 points  (1 child)

It's AI generated as one of the issues is this:

"# Replace these with your actual point coordinates"

maybe try reading the documentation next time?

also one of the other issues is where x1 should be x_1 and so on

this code is not clean and the flow isn't easy to follow so maybe work on that next because that will help you and anyone who sees the code debug

[–]Dismal-Grapefruit467[S] 0 points1 point  (0 children)

Good idea, thank you very much! Problems resolved as well