Doing It by the Numbers: Javascript Calculations in Web-Based Instructional Material用数字来实现:网页基于的教学材料中的JavaScript计算
Page 1The building of the web-based physics exploration environment which I call HyperPhysics was undertaken originally to provide a continuing resource for the science teachers which I have taught at Georgia State University. It has had a much wider impact than that, with over two million hits for the year 2000 through July. From the beginning, part of the strategy of that exploration environment was to lead users finally to a quantitative application of the concepts; a place where they could plug in the numbers and explore the results. 我最初建立的基于网络的物理探索环境,我称之为HyperPhysics,是为了为我在佐治亚州立大学任教的科学教师提供一个持续的资源。其影响远比这要广泛,2000年7月为止,该网站的访问量已超过两百万次。从一开始,该探索环境的一部分策略就是引导用户最终将概念应用于定量的场景;一个他们可以输入数值并探索结果的地方。
Given its original target audience, the design has been to approach any subject with illustration and qualitative discussion first, with links provided for a deeper exploration which includes the mathematics and finally an active routine in which the user could explore the concept numerically. Toward that numerical end, Javascript has proved to be an essential tool. Javascript is by all accounts a messy, unstructured language which has no graphical capability, but it has the very powerful characteristic of functioning smoothly over the web. You can post a Javascript routine for solving a specific problem on the web, and know that anywhere in the world a user can numerically solve the problem on their own computer. This is a very powerful teaching resource. I will give a number of examples of the use of Javascript in specific physical contexts. 鉴于其最初的受众,设计目标是首先通过示例和定性讨论来接近任何主题,提供链接以进行更深入的探索,其中包括数学内容,最后让用户能够通过数值方式探索概念。为了实现这一数值目标,JavaScript 已被证明是必不可少的工具。JavaScript 从各方面来看都是一种混乱且无结构的语言,它没有图形能力,但它具有非常强大的特点,即在网页上流畅运行。你可以将一个用于解决特定问题的 JavaScript 程序发布到网络上,知道世界各地的用户都可以在自己的电脑上数值地解决这个问题。这是一种非常强大的教学资源。我将给出一些 JavaScript 在特定物理情境中使用的具体例子。
To start with the simplest kind of application, here is an application to the concept of weight. The strategy here is simply one of illustration and a set of input/output boxes. The Javascript routines are initiated by simply entering a number in one of the boxes; the calculation is initiated by an "onchange()" command and will calculate the consistent values and place them in the other boxes. This illustrates one of the strategies used in the Javascript calculations, that of providing both the input and output in various unit systems. That has raised protests from SI purists, but in the U.S. we are still struggling to get our introductory students into SI, and I believe the instant visible display of the comparisons of the SI with US common units can help them make the transition. 首先,从最简单的应用开始,这里是一个关于“重量”概念的应用。这里的策略仅仅是示例,并且使用了一组输入/输出框。JavaScript程序通过在其中一个框中输入一个数字来启动,计算则由“onchange()”命令触发,并会计算出一致的值并将其放在其他框中。这展示了JavaScript计算中的一种策略,即在不同的单位系统中同时提供输入和输出。这引发了SI制的忠实支持者的抗议,但在美国,我们仍在努力将入门学生转向SI制,我认为即时显示SI制与美国常用单位的对比,可以帮助他们完成这一转变。
mass.html#wgt
![]() 第1页 质量
|
Text of paper
论文文本 | |||
|
Go Back
返回 |