small bugfix for poly_roots example program, and update docs

This commit is contained in:
Fredrik Johansson 2017-07-09 18:45:02 +02:00
parent 3be24cc287
commit 4fb7e281e1
2 changed files with 6 additions and 5 deletions

View file

@ -321,7 +321,8 @@ poly_roots.c
-------------------------------------------------------------------------------
This program finds the complex roots of an integer polynomial
by calling :func:`acb_poly_find_roots` with increasing
by calling :func:`arb_fmpz_poly_complex_roots`, which in turn calls
:func:`acb_poly_find_roots` with increasing
precision until the roots certainly have been isolated.
The program takes the following arguments::
@ -329,7 +330,7 @@ The program takes the following arguments::
Isolates all the complex roots of a polynomial with integer coefficients.
If -refine d is passed, the roots are refined to an absolute tolerance
If -refine d is passed, the roots are refined to a relative tolerance
better than 10^(-d). By default, the roots are only computed to sufficient
accuracy to isolate them. The refinement is not currently done efficiently.

View file

@ -22,7 +22,7 @@ int main(int argc, char *argv[])
flint_printf("Isolates all the complex roots of a polynomial with integer coefficients.\n\n");
flint_printf("If -refine d is passed, the roots are refined to an absolute tolerance\n");
flint_printf("If -refine d is passed, the roots are refined to a relative tolerance\n");
flint_printf("better than 10^(-d). By default, the roots are only computed to sufficient\n");
flint_printf("accuracy to isolate them. The refinement is not currently done efficiently.\n\n");
@ -196,9 +196,9 @@ int main(int argc, char *argv[])
if (printd)
{
for (i = 0; i < deg; i++)
for (j = 0; j < deg; j++)
{
acb_printn(roots + i, printd, 0);
acb_printn(roots + j, printd, 0);
flint_printf("\n");
}
}