In my first summer of graduate school my code suddenly stopped working
because Fortran and Python (via pow()
in C) do exponentiation differently.
Once I debugged and understood the problem, I learned about the highly
optimized assembly code produced by Fortran for integer exponents.
To give a sample of the …