-
Fun with numbers
-
Mini libraries for Haxe: Fractions and matrix
I was building an HAXE algorithm to evaluate the quality of a system of equations. The simplest way seemed to use a matrix and apply algorithm to triangularize.
2 problems:
- I could not find matrix libraries for cases other than 2x2 or 3x3.
- I needed to avoid the loss of precision that occurs when computer round numbers.
My solution : build a mini matrix library and fraction library and use a matrix of fractions. See the github repository here.