MPSolve 3.2.1
Loading...
Searching...
No Matches
mandelbrot-user.h File Reference

Go to the source code of this file.

Functions

MPS_BEGIN_DECLS void mps_fnewton_usr (mps_context *st, mps_polynomial *poly, mps_approximation *root, cplx_t corr)
 User-defined program for the computation of $p$, $p'$. More...
 
void mps_dnewton_usr (mps_context *st, mps_polynomial *poly, mps_approximation *root, cdpe_t corr)
 User-defined program for the computation of $p$, $p'$. More...
 
void mps_mnewton_usr (mps_context *st, mps_polynomial *poly, mps_approximation *root, mpc_t corr, long int wp)
 User-defined program for the computation of $p$, $p'$. More...
 
mps_boolean mps_feval_usr (mps_context *ctx, mps_polynomial *p, cplx_t x, cplx_t value, double *error)
 
mps_boolean mps_deval_usr (mps_context *ctx, mps_polynomial *p, cdpe_t x, cdpe_t value, rdpe_t error)
 
mps_boolean mps_meval_usr (mps_context *ctx, mps_polynomial *p, mpc_t x, mpc_t value, rdpe_t error)
 

Function Documentation

◆ mps_dnewton_usr()

void mps_dnewton_usr ( mps_context s,
mps_polynomial poly,
mps_approximation root,
cdpe_t  corr 
)

User-defined program for the computation of $p$, $p'$.

Parameters
sThe current mps_context
polyThe mps_polynomial being solved.
rootThe approximation whose Newton correction shall be computed.
corrThe output value where the newton correction will be stored.

This sample computes the 'Mandelbrot polynomial by means of the relation: p=1+x*p**2, starting with p=1

◆ mps_fnewton_usr()

MPS_BEGIN_DECLS void mps_fnewton_usr ( mps_context s,
mps_polynomial poly,
mps_approximation root,
cplx_t  corr 
)

User-defined program for the computation of $p$, $p'$.

Parameters
sThe current mps_context
polyThe mps_polynomial being solved.
rootThe approximation whose Newton correction shall be computed.
corrThe output value where the newton correction will be stored.

This sample computes the 'Mandelbrot polynomial by means of the relation: p=1+x*p**2, starting with p=1

◆ mps_mnewton_usr()

void mps_mnewton_usr ( mps_context s,
mps_polynomial poly,
mps_approximation root,
mpc_t  corr,
long int  wp 
)

User-defined program for the computation of $p$, $p'$.

Parameters
sThe current mps_context
polyThe mps_polynomial being solved.
rootThe approximation whose Newton correction shall be computed.
corrThe output value where the newton correction will be stored.

This sample computes the 'Mandelbrot polynomial by means of the relation: p=1+x*p**2, starting with p=1