Tag: NASA

Binary Search

Binary search is a search algorithm that finds the position of a target value within a sorted array. The following binary search routine is taken from NASTRAN, a venerable finite element analysis program from NASA: As you can see, it is a scene of FORTRAN

Posted in Programming Tagged with: , , , ,

C++ vs Fortran (Part 2)

Here is some C++ code (from actual NASA software): Here is the same code translated to Fortran: 😀 References N. Maclaren, Why (and Why Not) to Use Fortran Instead of C++, Matlab, Python etc, University of Cambridge Computing Service, June 2012. Daniel

Posted in Programming Tagged with: , ,
Top