Chapter 5

JavaScript


CONTENTS

Calculators

Base Calculator

by Marc Matteo
Contact Info: mmatteo@sna.com
URL: http://www.sna.com/mmatteo/Java/basecalc.html
Load Time: Fast
Source Code Included: Yes

Author's Description: I needed a decimal/hex/binary calculator and I couldn't find one ... so I wrote one. A simple JavaScript page that acts like a base calculator.

A nice and simple calculator, accompanied by logical usage notes. Download the source (and visit the author's other applets and such) at the linked "Here" page. For comparison, also check out the Base Converter (this section).

Base Converter

by Alexander Bogomolny
Contact Info: abogolm@superlink.net
URL: http://mars.superlink.net/abogom/binary.html

Source Code Included: Yes

Author's Description: A JavaScript to convert numbers between several bases: binary, ternary, hexadecimal, decimal, octal, quintal.

This JavaScript resource is a lot like the Base Calculator (this section) but with more bases. Both provide the user with additional helpful math, and both provide the source.

Compressible Aerodynamics Calculator

by William Devenport
Contact Info: devenport@aoe.vt.edu
URL: http://www.aoe.vt.edu/aoe3114/calc.html
Load Time: Very Fast
Source Code Included: Yes

Author's Description: This calculator is designed to replace tables (e.g. NACA 1135) in performing basic compressible aerodynamic calculations. It is designed for those learning, teaching, or using compressible aerodynamics. It computes (both forward and backward) isentropic flow, normal shock, and oblique shock relations. It also has a scratch pad for doing the additional arithmetic usually needed to solve compressible aero problems.

If you're not an aerospace engineer or engineering student, you'll need to consult the linked What's This? or explanation page to have a ghost of a chance at using this calculator.

Great Circle Distance Calculator

by Lin Hsin Hsin
Contact Info: artist@lhham.com.sg
URL: http://www.lhham.com.sg/tsq/form1.html
Load Time: Very Fast
Source Code Included: No

Author's Description: The Great Circle Distance Calculator is to compute great circle distance (in kilometers) between any two points on earth, given the latitudes and longitudes of the city. A list of latitudes and longitudes of major cities in the world are listed.

Choose a major city or airport from the scroll-down list at the bottom of this applet page, input the latitudes and longitudes, and click Compute. The answer will appear almost instantly in the given field at the bottom of the calculator.

Individual Win/Loss Calculator

by Dean Turcoliver
Contact Info: deano@nerc1nerc.com
URL: http://cmr.sph.unc.edu/~deano/bball/articles/binomind.html
Load Time: Very Fast
Source Code Included: Yes

Author's Description: JavaScript code that uses a fairly quick random number generator to estimate how often an individual basketball player contributes to a win.

This calculator brushes aside the particular strengths and weaknesses of individual famous basketball players and uses statistics to determine how often they really help win a game. Other basketball-related resources on the Gamelan directory include BullSweep (Miscellaneous: Other Miscellaneous Resources) and Journal of Basketball Studies (News: Other News Resources).

Physical Calculator

by Chris Dolan
Contact Info: dolan@astro.wisc.edu
URL: http://www.astro.wisc.edu/~dolan/constants/calc.html
Load Time: Very Fast
Source Code Included: No

Author's Description: This is a JavaScript calculator with several physical and astronomical constants programmed into it. It is based on the Scientific Calculator by Rolf Howarth (http://www.parallax.co.uk/~rolf/Calculator).

Scroll down the applet page to peruse the list of what this calculator covers-15 physical and eight astronomical constants. UNIX users should expand the applet window if this calculator looks fuzzy or fragmented, though Macintosh users with similar problems are probably out of luck.

Runner's Calorie Counter

by Chris Van Buskirk
Contact Info: cvanbus@tcs.tulane.edu
URL: http://studentweb.tulane.edu/~cvanbus/calorie1.html
Load Time: Very Fast
Source Code Included: Yes

Author's Description: JavaScript program that will calculate calories burned during a run.

A simple, straightforward JavaScript resource. Source is included.

Standard Atmosphere Computations

by Stanford Aircraft Aerodynamics and Design Group
Contact Info: kroo@leland.stanford.edu
URL: http://aero.stanford.edu/stdatm.html
Load Time: Fast
Source Code Included: No

Author's Description: This form uses JavaScript to computer properties related t