Navigational Algorithms
The navigational algorithms are the quintessence of the executable software on portable calculators or PDA as an aid to the art of navigation, this attempt article describe both algorithms and software for "PC-PDA" implementing different calculation procedures for navigation . The calculation power obtained by the languages: Basic, "C", Java, etc. .., from portable calculators or PDAs , has made it possible to develop programs that allow calculating the position without the need for tables, in fact they have some basic tables with the correction factors for each year and calculate the values "on the fly" at runtime . Programs for  general navigation. Programs on the nautical chart, directions, coastal navigation and beacons, nautical publications. The astronomical navigation section includes the resolution of the position triangle, the usefulness of a height line, the recognition of stars and the determinant of the height line, in addition to other topics of interest in nautical: tides, naval kinematics, meteorology and hurricanes, and oceanography. All heading measurements made with a magnetic compass or compass must be corrected for magnetic declination or local variation. Coordinate conversion subroutine. sub Rectang2Polar (a () as double, b () as double) static Programs for astronomical navigation. Advanced navigation algorithms include piloting and  astronomical navigation: loxodromia and orthodromia. Height correction of the sextant . Astronomical position with calculator, template and blank mercantile chart. Position by 2 Lines of Height. Position from n Height Lines. Vector equation of the Height Circle. Position for vector solution from two observations. Position by Height Circles: matrix solution. And articles related to ancient procedures such as obtaining latitude by the pole star, the meridian, the method of lunar distances , etc. Programs for the "Nautical Almanac". Ephemerides of the celestial bodies used in navigation. CelestialFix. They solve the problem of calculating the position from observations of the stars made with  the sextant in Astronomical Navigation. Algorithm implementation: For "n" = 2 observations For "n" ≥ 2 observations Magnetic declination. Any measure of course made with a magnetic compass must be corrected because of the magnetic declination or local variation.