Solar System Calculator
Posted: Fri Sep 27, 2024 8:28 am
Adapted from a prior PET example, this calculates how far along a fence to draw the planets at scale to each other.
The two inputs are how long is your fence (in feet) and how many planets you want to include in your model (1-9, yep I included Pluto anyway).
However, planet orbits aren't perfectly circular - they will have a min (nearest to sun) distance, max (furthest from sun), and an average distance to the sun. This program calculates all 3 of those, so you can choose which one to use in your fence model (I'd generally use average).
There is an Easter Egg in this program if you use inputs "108" and "8" (fence length 108 and 8 planets), exclusive to the X16 (however it requires the R48 ROM update, due to using OVAL and RING - since BASIC is interpreted on the fly, you can run the rest of the program with older ROM -- the TryItNow emulator is not yet updated to R48)
Try It Now!
The two inputs are how long is your fence (in feet) and how many planets you want to include in your model (1-9, yep I included Pluto anyway).
However, planet orbits aren't perfectly circular - they will have a min (nearest to sun) distance, max (furthest from sun), and an average distance to the sun. This program calculates all 3 of those, so you can choose which one to use in your fence model (I'd generally use average).
There is an Easter Egg in this program if you use inputs "108" and "8" (fence length 108 and 8 planets), exclusive to the X16 (however it requires the R48 ROM update, due to using OVAL and RING - since BASIC is interpreted on the fly, you can run the rest of the program with older ROM -- the TryItNow emulator is not yet updated to R48)
Try It Now!