eq3cubic equation solver |
|
local solve_equation3 = require'eq3'
solve_equation3(a, b, c, d[, epsilon]) -> [s1[, s2[, s3]]]
Solve the 3rd degree equation ax3 + bx2 + cx + d and return all the real solutions.
Epsilon controls the precision at which the solver converges on close enough solutions.