Math.js for power functions and geometric series, unit/unitlist/unitmanager for starting to build out scaled resource production. A basic unit test drawing it all together.