Univariate polynomials

1.C++ interface

Analyziz completes Algebramix by providing the user with special variants for polynomials with numerical type coefficients:

Root finding is implemented:

2.Mathemagix interface

Mmx]  
use "analyziz"
Mmx]  
p: Polynomial Floating == polynomial (-1.0001, 0.0^^4, 1.0)

:

Mmx]  
bit_precision := 128;
v == roots p

:

Mmx]  
[ eval (p, a) | a in v ]

:

Mmx]  
p: Polynomial Ball (Floating, Complex Floating) ==
  polynomial (ball (-1.0001), (ball 0.0)^^4, ball 1.0)

:

Mmx]  
roots p

:

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License. If you don't have this file, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.