Note G is a computer algorithm traditionally credited to Ada Lovelace, designed to compute Bernoulli numbers on the Analytical Engine proposed by Charles Babbage. Lovelace published it in 1843 as part of her English translation of a French account by Luigi Menabrea of the Analytical Engine, in a set of notes three times longer than the article itself. Babbage stated that the selection of Note G was entirely her own choice, and she caught and corrected a significant mistake in his mathematical formulas along the way. Note G is widely considered the first computer program ever published, and the notes Lovelace wrote to accompany it showed unusual foresight, suggesting the engine could eventually be applied to music, graphics and language rather than pure calculation alone. The algorithm as published contains a bug: two variables are reversed in a division step, so if it were run exactly as written it would compute the eighth Bernoulli number incorrectly. Because the Analytical Engine was never built, the program was never tested during the lifetime of either Lovelace or Babbage. This description is adapted from Wikipedia contributors under CC BY-SA 4.0; changes were made. https://creativecommons.org/licenses/by-sa/4.0/
Sources
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.