After some testing, I decided to ditch the DirectX approach of writing math functions. Additionally, I added unit tests (with reference wxMaxima calculations) for most math functions and fixed several bugs along the way.
Readme file contains implemented and future features. License file is a license file.