Space Math

I updated my Space Math page. This is a bunch of calculators written in JavaScript. I wrote these about 8 years ago, when I was still learning how to code in JavaScript. Since then the site has been reorganized and the code has broken for mysterious reasons.

Yesterday I updated some of the procedures. It is very convoluted code that grew, much as an ivy bush, curving around in strange loops, that looked clever at the time, but made the code difficult to maintain. I added a new feature, fixed a few broken parts, and then I tested everything several times.

I think it is good for a while.

This is one of my more popular pages. Users are always making good suggestions. Users find bugs or ask for features frequently.

I need to add some more of these calculators. There is a particularly good formula for spaceflight that involves how a spacecraft behaves as it uses up fuel. The mass of the spacecraft changes during the trip so it useful for calculating how far a ship can travel starting with a full tank. It is a complicated formula, but well within the capabilities of JavaScript.

I really like JavaScript and I have thought of writing a short story using it that has branches and loops, much like an adventure game. I think it would be fun.

Space Math | Resources for Science Fiction Writers.