In 1837, the first computer program in history was sketched by the renowned mathematician and inventor Charles Babbage. It was a program for the Analytical Engine. The program consists of a sequence of arithmetical operations and the necessary variable addresses (memory locations) of the arguments and the result, displayed in tabular fashion, like a program trace. The program computes the solutions for a system of two linear equations in two unknowns.
翻译:1837年,著名数学家兼发明家查尔斯·巴贝奇(Charles Babbage)绘制了历史上首个计算机程序草图。该程序专为分析机(Analytical Engine)设计,包含一系列算术运算序列,以及操作数与结果的必要变量地址(内存位置),并以表格形式呈现,类似程序追踪。该程序用于计算含两个未知数的二元线性方程组的解。