Bilingual edition: English is preserved and Chinese follows each unit. Terminology uses the confirmed v20260916 glossary; automated semantic review remains traceable.
中英双语版:英文原文完整保留,中文紧随对应单元;术语采用 v20260916 确认表,自动语义审校结果可追溯。

Doing It by the Numbers: Javascript Calculations in Web-Based Instructional Material, Carl Rod Nave

用数字来实现:网页基于的教学材料中的JavaScript计算,Carl Rod Nave

Page 2

第2页

The problem of various unit systems is even more apparent in applications involving pressure where a variety of units is used. For example, this ideal gas law calculation provides the comparison of the SI pressure unit with the common liquid column height type units. It also deals with the different temperature scales. Besides dealing with a variety of units, this calculation illustrates two additional elements of the strategy used in the Javascript web calculations. By providing active, clickable graphics for the initiation of the calculation, a user can enter the available data and click on any of the six quantities to calculate the value of that parameter consistent with the other data entered. The second strategy which I have come to by practical experience is to provide default entries for all variables if their value is zero. That keeps a user from dealing with division by zero and provides some reasonable parameters for the beginning of their numerical exploration.

各种单位系统的问题在涉及压力的应用中更加明显,因为经常使用多种单位。例如,这个理想气体定律计算展示了SI压力单位与常见的液柱高度类型单位的比较。它还涉及不同的温度刻度。除了处理多种单位外,这个计算还展示了JavaScript网页计算策略的两个额外要素。通过提供可点击的主动图形来启动计算,用户可以输入可用数据,并点击任意一个六个参数来计算与已输入数据一致的该参数值。我通过实践经验得出的第二个策略是,如果变量值为零,则提供默认输入。这可以避免用户遇到除以零的问题,并为他们的数值探索提供一些合理的初始参数。

For example, I can just click on Final Pressure without entering any data, and it performs the calculation with the default values. Then if I enter a new initial pressure and temperature, it provides the conversion of those values to all the unit systems, and I can then click on Final Pressure again to examine the change. My hope is that this kind of calculation will lead the user off into "what if?" type questions and a numerical exploration of the ideal gas law.

例如,我只需点击Final Pressure而不输入任何数据,它就会使用默认值进行计算。然后如果我输入一个新的初始压力和温度,它会将这些值转换为所有单位系统,之后我可以再次点击Final Pressure来观察变化。我希望这种计算能引导用户进入“如果……会怎样?”类型的疑问,并进行理想气体定律的数值探索。
Continue to page 3
继续查看第3页
AAPT Guelph Paper Outline

Top of Paper
AAPT Guelph 纸张大纲 paper
 
HyperPhysicsR Nave
Go Back
返回