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网页计算策略的两个额外要素。通过提供可点击的主动图形来启动计算,用户可以输入可用数据,并点击任意一个六个参数来计算与已输入数据一致的该参数值。我通过实践经验得出的第二个策略是,如果变量值为零,则提供默认输入。这可以避免用户遇到除以零的问题,并为他们的数值探索提供一些合理的初始参数。
继续查看第3页 |
AAPT Guelph Paper Outline Top of Paper AAPT Guelph 纸张大纲 paper | ||
|
Go Back
返回 |