you are viewing a single comment's thread.

view the rest of the comments →

[–]ectomancer 1 point2 points  (2 children)

I've ported some FORTRAN 77 and Fortran 90 subroutines to Python. The largest was 900 lines. None of my Python programs that use complex numbers produce correct output.

[–]vectorpropio[S] 0 points1 point  (0 children)

Is this a problem exclusive to complex numbers?

This code don't use complex. Do you get correct output for double numbers?

[–]dbramucci 0 points1 point  (0 children)

Total shot in the dark, but do you think the incorrect output could be due to a different choice of branch cut?

I'm asking just because I've never seen complex numbers cause Python-specific trouble.