Advanced computing with IPython
Advanced computing with IPython
Posted Jun 20, 2018 18:39 UTC (Wed) by excors (subscriber, #95769)In reply to: Advanced computing with IPython by excors
Parent article: Advanced computing with IPython
Oh, and also the Python version returns the value from n=1e8-1, while the Fortran version goes up to n=1e8, because 'range' takes an exclusive upper bound and 'do' is inclusive. But even after fixing that, it seems there's still a (slightly smaller) difference in their outputs.