Skip to main content

Module solve

Module solve 

Source
Expand description

Equation solving — linear, quadratic, systems of equations.

Enums§

Solutions
Solutions to an equation.

Functions§

newton_raphson
Newton-Raphson root finding for f(x) = 0.
solve_cubic
Solve a cubic equation ax³ + bx² + cx + d = 0 using Cardano’s method.
solve_linear
Solve a linear equation ax + b = 0.
solve_quadratic
Solve a quadratic equation ax² + bx + c = 0.
solve_system_2x2
Solve a system of 2 linear equations via Cramer’s rule: a1x + b1y = c1 a2x + b2y = c2