Skip to main content

solve

Function solve 

Source
pub fn solve(a: &[Vec<Rational>], b: &[Rational]) -> Option<Vec<Rational>>
Expand description

Solve A·x = b exactly by Gauss–Jordan elimination with nonzero pivoting (n×n). Returns None iff A is singular. All arithmetic is exact — the answer 1/3 stays 1/3.