MPSolve 3.2.1
Loading...
Searching...
No Matches
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
19MPS_BEGIN_DECLS
20
21/* These two routines are implemented in newton.c */
22void mps_parhorner (mps_context * st, int n, mpc_t x, mpc_t p[],
23 mps_boolean b[], mpc_t s, int n_thread);
24void 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 */
28void mps_fhorner (mps_context * s, mps_monomial_poly * p, cplx_t x, cplx_t value);
30 cplx_t value, double * relative_error);
31void mps_dhorner (mps_context * s, mps_monomial_poly * p, cdpe_t x, cdpe_t value);
32void mps_dhorner_with_error (mps_context * s, mps_monomial_poly * p, cdpe_t x, cdpe_t value, rdpe_t relative_error);
33void 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
39MPS_END_DECLS
40
41#endif /* endif MPS_HORNER_H_ */
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
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
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
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
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
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
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
this struct holds the state of the mps computation
Definition: context.h:55
Data regarding a polynomial represented in the monomial base.
Definition: monomial-poly.h:44