Dylan Salisbury’s weblog

JavaScript calculator for resource allocation problem

November 2, 2009 · Leave a Comment

I wrote a little program in JavaScript that solves a discrete resource allocation problem for Oliver Yu’s Computer-Based Decision Models.

This program shows off some of the power of JavaScript (technically, ECMAScript). The power isn’t in the language itself, which has plenty of limitations and oddities… the power is how the language is used across the Internet.

Every computer and many phones have JavaScript-enabled web browsers, so they can all run this calculator offline by simply loading the HTML file. No need to install anything first. The JavaScript functions can easily be re-used by some other program.

Here is a link to the calculator, which I can’t include directly on a WordPress blog. You should be able to use Save As to write it to a local HTML file that can be used without any Internet connection.

Categories: Uncategorized

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment