DK96-OS / MathTools

Mathematical Software Components. This library is actively maintained, and aims to stay updated. New feature proposals are welcome, but may not be included.
Apache License 2.0
2 stars 1 forks source link

Remove Systems Directory #112

Closed DK96-OS closed 2 years ago

DK96-OS commented 2 years ago

Remove Systems

This directory contains old code that doesn't quite fit in MathTools today.

DK96-OS commented 2 years ago

Simple Parabolic System

A Kotlin object containing only functions.

parabola is the general quadratic equation.

parabolicA will solve for the constant of the square for given boundary conditions, and a curve shaping parameter.

parabolicB will solve for the linear term's rate of change, given that A has been solved with the same curve shaping parameter.

calc is a convenience function that solves the quadratic equation for the given boundary conditions and curve shaping parameter, and then evaluates the equation at x.

Notes

One of the greatest problems with this code is the complete disregard for precision in calculations.

The original purpose for which this was developed did not require more than 3 sf of precision in x or y.