4 ms·
I was playing around with the code snippet, and I discovered you can replace line 22: e = P[i]-P[j] with e = P[j]-P[i] That is, you can simply chang
by Etherlord87 3y ago
I was playing around with the code snippet, and I discovered you can replace line 22:
e = P[i]-P[j]
with
e = P[j]-P[i]
That is, you can simply change the order of comparisons of areas, and suddenly the script stops working… This shows how unreliable sympy really is; you can write an article how it solves a mathematical problem, but you could similarly write an article on how ChatGPT solves a problem (because for a given prompt it does solve it, but for a slightly changed prompt it fails miserably; of course assuming 0 temperature, otherwise the prompt is not reproducible…). Unfortunately, I also have similar experience with AI Feynman…