4 ms·
The difference is this: When I write code that has an error, I usually get either a compile or run time error. Not so with math!
by 2sk21 11y ago
The difference is this: When I write code that has an error, I usually get either a compile or run time error. Not so with math!
- auggierose 11y agoThat's possible with math too!
- Smaug123 11y agoOne can, however, catch some of these with unit tests, in maths just as well as in code. The unit tests for maths are tiny, trivial cases of the main theorem. For instance, if I wrote down Fermat's Last Theorem as "x^n + y^n = z^n has no solutions for n > 1", I would run my unit tests by checking the boundary case n=2, and discovering the easy counterexample of (3,4,5).