MPSolve  3.2.1
horner.h
Go to the documentation of this file.
1 /*
2  * This file is part of MPSolve 3.2.1
3  *
4  * Copyright (C) 2001-2020, Dipartimento di Matematica "L. Tonelli", Pisa.
5  * License: http://www.gnu.org/licenses/gpl.html GPL version 3 or higher
6  *
7  * Authors:
8  * Leonardo Robol <leonardo.robol@unipi.it>
9  */
10 
16 #ifndef MPS_HORNER_H_
17 #define MPS_HORNER_H_
18 
19 MPS_BEGIN_DECLS
20 
21 /* These two routines are implemented in newton.c */
22 void mps_parhorner (mps_context * st, int n, mpc_t x, mpc_t p[],
23  mps_boolean b[], mpc_t s, int n_thread);
24 void mps_aparhorner (mps_context * st, int n, rdpe_t x, rdpe_t p[],
25  mps_boolean b[], rdpe_t s, int n_thread);
26 
27 /* The following routines are implemented in newton.c */
28 void mps_fhorner (mps_context * s, mps_monomial_poly * p, cplx_t x, cplx_t value);
30  cplx_t value, double * relative_error);
31 void mps_dhorner (mps_context * s, mps_monomial_poly * p, cdpe_t x, cdpe_t value);
32 void mps_dhorner_with_error (mps_context * s, mps_monomial_poly * p, cdpe_t x, cdpe_t value, rdpe_t relative_error);
33 void mps_mhorner (mps_context * s, mps_monomial_poly * p, mpc_t x, mpc_t value);
35  mpc_t x, mpc_t value, rdpe_t relative_error, long int wp);
37  mpc_t value, rdpe_t relative_error, long int wp);
38 
39 MPS_END_DECLS
40 
41 #endif /* endif MPS_HORNER_H_ */
mps_monomial_poly
Data regarding a polynomial represented in the monomial base.
Definition: monomial-poly.h:44
mps_context
this struct holds the state of the mps computation
Definition: context.h:55
mps_mhorner_with_error2
void mps_mhorner_with_error2(mps_context *s, mps_monomial_poly *p, mpc_t x, mpc_t value, rdpe_t relative_error, long int wp)
Compute the value of the polynomial p in the point x and save it in value.
Definition: horner.c:75
mps_dhorner_with_error
void mps_dhorner_with_error(mps_context *s, mps_monomial_poly *p, cdpe_t x, cdpe_t value, rdpe_t relative_error)
Evaluate the polynomial p in the point x, and give also a bound to the relative error occured in the ...
Definition: horner.c:316
mps_fhorner_with_error
void mps_fhorner_with_error(mps_context *s, mps_monomial_poly *p, cplx_t x, cplx_t value, double *relative_error)
Evaluate the polynomial p in the point x, and give also a bound to the relative error occured in the ...
Definition: horner.c:367
mps_fhorner
void mps_fhorner(mps_context *s, mps_monomial_poly *p, cplx_t x, cplx_t value)
Evaluate the polynomial p in the point x.
Definition: horner.c:343
mps_mhorner_with_error
void mps_mhorner_with_error(mps_context *s, mps_monomial_poly *p, mpc_t x, mpc_t value, rdpe_t relative_error, long int wp)
Compute the value of the polynomial p in the point x and save it in value.
Definition: horner.c:135
mps_dhorner
void mps_dhorner(mps_context *s, mps_monomial_poly *p, cdpe_t x, cdpe_t value)
Evaluate the polynomial p in the point x.
Definition: horner.c:291
mps_mhorner
void mps_mhorner(mps_context *s, mps_monomial_poly *p, mpc_t x, mpc_t value)
Compute the value of the polynomial p in the point x and save it in value. If you need a bound to the...
Definition: horner.c:29