|
MPSolve 3.2.2
|
Implementation of Newton correction computation. More...
Go to the source code of this file.
Functions | |
| MPS_BEGIN_DECLS void | mps_fnewton (mps_context *st, mps_polynomial *p, mps_approximation *root, cplx_t corr) |
| Compute the Newton correction, i.e. and the value | |
| void | mps_dnewton (mps_context *st, mps_polynomial *p, mps_approximation *root, cdpe_t corr) |
| Compute the Newton correction, i.e. and the value | |
| void | mps_mnewton (mps_context *st, mps_polynomial *p, mps_approximation *root, mpc_t corr, long int wp) |
| Compute the Newton correction, i.e. and the value | |
Implementation of Newton correction computation.
| void mps_dnewton | ( | mps_context * | s, |
| mps_polynomial * | poly, | ||
| mps_approximation * | root, | ||
| cdpe_t | corr ) |
Compute the Newton correction, i.e. and the value 
![\[ nwt = \frac{p(z)}{p'(z)} \qquad s =
\left\lvert \frac{p(\lvert z \rvert)}{p'(\lvert z \rvert)} \right\rvert
\]](form_41.png)
and set the parameter cont to true if the newton correction is greater than 
This routine is the DPE version of mps_fnewton().
| s | The mps_context struct pointer. |
| poly | The polynomial to evaluate, casted to a mps_polynomial. |
| root | The approximation where the newton fraction should be evaluated. |
| corr | The complex value of the newton correction. |
| MPS_BEGIN_DECLS void mps_fnewton | ( | mps_context * | s, |
| mps_polynomial * | poly, | ||
| mps_approximation * | root, | ||
| cplx_t | corr ) |
Compute the Newton correction, i.e. and the value 
![\[ nwt = \frac{p(z)}{p'(z)} \qquad s =
\left\lvert \frac{p(\lvert z \rvert)}{p'(\lvert z \rvert)} \right\rvert
\]](form_41.png)
and set the parameter cont to true if the newton correction is greater than 
| s | The mps_context struct pointer. |
| poly | The polynomial to evaluate, casted to a mps_polynomial. |
| root | The approximation where the newton fraction should be evaluated. |
| corr | The complex value of the newton correction. |
| void mps_mnewton | ( | mps_context * | s, |
| mps_polynomial * | poly, | ||
| mps_approximation * | root, | ||
| mpc_t | corr, | ||
| long int | wp ) |
Compute the Newton correction, i.e. and the value 
![\[ nwt = \frac{p(z)}{p'(z)} \qquad s =
\left\lvert \frac{p(\lvert z \rvert)}{p'(\lvert z \rvert)} \right\rvert
\]](form_41.png)
and set the parameter cont to true if the newton correction is greater than 
This routine is the multiprecision version of mps_fnewton(). It differs from these routines, indeed, because it uses a more sophisticated tecnique to perform the computation:
| s | The mps_context struct pointer. |
| poly | The polynomial to evaluate, casted to a mps_polynomial. |
| root | The approximation where the newton fraction should be evaluated. |
| corr | The complex value of the newton correction. |
| wp | Select the working precision to use in the computation. |