1
vote
1answer
31 views

Help with load balancing math based on fractional capacity

I'm looking to create an algorithm that allows me to select a number(index) from a list based on it's fractional weight component. It's for load balancing, I'll give an example below of what I mean. ...
5
votes
1answer
113 views

2x2 Matrices and Differences of Fractions

Consider the difference of two arbitrary fractions, $\frac{a}{b}$ and $\frac{c}{d}$. $$\frac{a}{b}-\frac{c}{d}=\frac{ad-bc}{bd}$$ The numerator is the determinant of the 2x2 matrix $$ \left( ...
5
votes
7answers
1k views

Best way to exactly solve a linear system (300x300) with integer coefficients

I want to solve system of linear equations of size 300x300 (300 variables & 300 equations) exactly (not with floating point, aka dgesl, but with fractions in ...