Have Claude review old code from your student days
Claude found, among other things, that pi was set to 3.1415 in the C code MathLab wrote as an intern in 2013. Fixing that one constant made the drift in the model 750 times smaller.
Done with ClaudeModerate
What was done
Claude found, among other things, that pi was set to 3.1415 in the C code MathLab wrote as an intern in 2013. Fixing that one constant made the drift in the model 750 times smaller. An error norm hid errors by a factor of 50, and a new quadrature rule made the run 20 times faster. He does not say how much of the fixing Claude did itself, and wonders whether he would have learned more or less with such a tool as a student.
How to do it
- Paste the prompt into the tool, and replace the text in brackets with your own.
- Read the answer through. Do not send, delete or publish anything until you have seen it yourself.
- Check the original before you trust a figure, a name or a date.
Try it with Claude
Go through the code in [folder or repo] that I wrote for [purpose], and look for errors in constants, formulas and tests. Check the formulas against [paper or textbook] and say where the code and the source disagree. Show me each error with a line number and a suggestion before you change anything. You are done when I have a list sorted by how much each error affects the result.
Replace text in brackets with your own.
Done when. You have a list sorted by how much each error affects the result.
Hacker News ·