火星气候轨道器:同一个数字,不同单位
Mars Climate Orbiter: one number, different units
计算形式正确,也可能因输入解释不一致而失败。
所引调查报告日期 · 1999-11-10
原始材料
原文短摘(含标题片段);本站译文
未在一个地面软件文件的编码中使用公制单位
查看英文原文
the failure to use metric units in the coding of a ground software file背景与来源所述
展开本步内容
背景与来源所述
NASA 的任务概述指出,英制与公制单位未正确转换造成导航错误,导致火星气候轨道器损失。任务于 1999 年 9 月 23 日结束;所引网页最后更新于 2025 年 9 月 15 日。
Background: what the source reports
NASA’s mission overview attributes the loss of Mars Climate Orbiter to a navigation error caused by a failure to convert English units to metric. The mission ended on September 23, 1999; the cited page was last updated on September 15, 2025.
论证重构 · 本站分析
展开本步内容
论证重构 · 本站分析
重构:两个接口都传送数值,所以数值可以直接组合。遗漏的是量纲与单位约定;相同数字不保证相同物理量。
Argument reconstruction · our analysis
Reconstruction: both interfaces transmit numbers, so their values can be combined directly. Dimensions and unit conventions are missing; identical numerals need not denote identical quantities.
调查报告定位到具体数据接口
展开本步内容
调查报告定位到具体数据接口
报告指出,SM_FORCES 地面程序输出应为牛顿秒,实际却是磅力秒;导航处理因而低估推力影响约 4.45 倍。它还明确区分机载计算正确与地面建模出错,不能把事件简化成飞船完全不知道公制。
The report identifies the data interface
The report states that SM_FORCES output required newton-seconds but supplied pound-force seconds, leading navigation processing to underestimate thrust effects by about 4.45. It distinguishes correct onboard computation from faulty ground modeling.
Section sources: §4, printed p. 16; §5 cause 1, pp. 17–18 ↗
数字相同不等于物理量相同
展开本步内容
数字相同不等于物理量相同
接口契约不只规定字段是数值,还规定单位、量纲与意义。原始数字 10 若从一种单位直接解释成另一种单位,程序能运行也不说明计算对象正确。
核查应连接输入约定、输出实现与下游解释,并用端到端结果检验。这里讲的是语义与工程验证的共同问题;不能仅凭逻辑分类为某个人分配事故责任。
Identical numerals need not denote identical quantities
An interface contract specifies units, dimensions, and meaning as well as numeric type. Reading the numeral ten in another unit may leave software executable while changing the represented quantity.
Check input contracts, output implementation, downstream interpretation, and end-to-end behavior. This connects semantics with engineering verification without assigning individual blame from a logic label.
把输入单位带进计算
展开本步内容
把输入单位带进计算
任务概述与调查报告是不同资料层次;下面换算题为原创。
独立练习 1
接口规定接收毫秒,发送方却把 2 秒写成数字 2。接收方当作 2 毫秒使用,差多少倍?
查看答案与推理过程
2 秒应为 2,000 毫秒,实际解释的时长小了 1,000 倍。数值类型正确不保证单位语义正确;这个数值例子不是火星任务数据。
Carry the unit into the calculation
The mission overview and investigation have different levels of detail; the conversion exercise is original.
Independent exercise 1
An interface expects milliseconds, but a sender encodes two seconds as 2. The receiver reads two milliseconds. What is the factor error?
Show answer and reasoning
Two seconds are 2,000 milliseconds, so the interpreted duration is smaller by a factor of 1,000. Numeric type does not guarantee unit correctness; these are not mission data.
Section sources: About the Mission and Key Facts: mission ending and page update ↗
判断的边界
展开本步内容
判断的边界
任务概述只提供简要原因,不能据此判定具体个人的责任。本站的接口推理重构是教学说明,并非工程人员的原话。
Limits of the judgment
The mission overview gives a brief causal account, insufficient to assign individual responsibility. Our reconstruction about interfaces is a teaching explanation, not a quotation from the engineers.
试着区分
展开本步内容
试着区分
问:换算公式正确就够了吗?答:还需验证输入单位、接口契约和端到端结果。
Test the distinction
Question: Is a correct conversion formula enough? Answer: Input units, interface contracts, and end-to-end outcomes must also be verified.
参考文献
- Mars Climate Orbiter Mishap Investigation Board · Phase I Report ↗NASA Mars Climate Orbiter Mishap Investigation Board · 相关章节§4, printed p. 16 (PDF page 16); §5, Contributing Cause No. 1, printed pp. 17–18版本、许可与查阅范围
- Mars Climate Orbiter · Mission Overview ↗NASA Science · 相关章节About the Mission; Key Facts; page update 2025-09-15, mission ended 1999-09-23版本、许可与查阅范围