{"id":55,"date":"2008-01-03T18:25:44","date_gmt":"2008-01-03T23:25:44","guid":{"rendered":"http:\/\/blogs.cae.tntech.edu\/mwr\/python-for-fortran-programmers\/"},"modified":"2008-01-03T18:25:44","modified_gmt":"2008-01-03T23:25:44","slug":"python-for-fortran-programmers","status":"publish","type":"page","link":"https:\/\/sites.tntech.edu\/renfro\/python-for-fortran-programmers\/","title":{"rendered":"Python for Fortran Programmers"},"content":{"rendered":"<blockquote><p>I don&#8217;t know what language engineers will use in the future, but I know they&#8217;ll call it Fortran.<\/p><\/blockquote>\n<p>(Source unknown, some references <a href=\"http:\/\/discuss.joelonsoftware.com\/default.asp?joel.3.109698.35\">here<\/a>.)<\/p>\n<p>Here&#8217;s a collection of Python translations of program listings from D.M. Etter&#8217;s <i>Structured FORTRAN 77 for Engineers and Scientists<\/i>, 3rd Ed. Why this book? Because it&#8217;s what I used in my first (and only) Fortran class. To avoid potential copyright problems, I&#8217;m not including the original Fortran code, even though this might qualify as fair use. <a href=\"http:\/\/www.abebooks.com\/servlet\/SearchResults?an=etter&amp;sts=t&amp;tn=structured+fortran+77&amp;x=0&amp;y=0\">Spend the $1.00 plus shipping at AbeBooks<\/a>, or find it in your local used bookstore or library.<\/p>\n<p>I don&#8217;t claim that any of the following translations are good examples of idiomatic Python; when someone pointed out where some of my earlier code could be done much cleaner with functional programming techniques, I remarked &#8220;I&#8217;m less of a functional programmer than a dysfunctional one&#8221;. As I get time, I may go back and rework some of these in a more Pythonic manner.<\/p>\n<ul>\n<li><a href=\"python-for-fortran-programmers-chapter-2\/\">Chapter 2 &#8211; Arithmetic Computations<\/a><\/li>\n<li><a href=\"python-for-fortran-programmers-chapter-3\/\">Chapter 3 &#8211; Control Structures<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I don&#8217;t know what language engineers will use in the future, but I know they&#8217;ll call it Fortran. (Source unknown, some references here.) Here&#8217;s a collection of Python translations of program listings from D.M. Etter&#8217;s Structured FORTRAN 77 for Engineers and Scientists, 3rd Ed. Why this book? Because it&#8217;s what I used in my first &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/sites.tntech.edu\/renfro\/python-for-fortran-programmers\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Python for Fortran Programmers&#8221;<\/span><\/a><\/p>\n","protected":false},"author":87,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-55","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/pages\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":0,"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/pages\/55\/revisions"}],"wp:attachment":[{"href":"https:\/\/sites.tntech.edu\/renfro\/wp-json\/wp\/v2\/media?parent=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}