Comment Re:Can AI write usable, performance, quality code? (Score 1) 207
Just asked ChatGPT about that line of code with a "Why?"
It gave a fine analysis with the result that I could rewrite it to:
1 – (sqrt(MiddlePoint))/(10)
I would probably continue to:
1 – sqrt(MiddlePoint/100)
And it guessed that the input was between 0 and 100 and we wanted a smoothly decreasing output.