Boost logo

Boost Users :

Subject: [Boost-users] [math] Solving quadratic, cubic & quartic functions
From: Fredrik Orderud (forderud_at_[hidden])
Date: 2013-08-18 09:13:24


I've run into an eigenvalue problem where I need to compute the roots of a
cubic polynomial. This is a straight-forward problem to solve analytically,
but I want to avoid reinventing the wheel if possible. The boost::math doc
mentions some root-finding functions, but they all seem to be iterative -
which should not be neccesary in my case.

Can anyone tell me if boost includes any functions for analytically computing
the roots of quadratic, cubic and possibly quartic polynomials?

Thanks in advance,
Fredrik Orderud



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net