Debian Codegraph @

external/gsl/gsl_specfunc__cheb_eval.c

raw symbols SCIP
1
2 static inline int
3 cheb_eval_ecxx . . $ cheb_eval_e(d4bbbe138f497cd3).(const cheb_seriescxx . . $ cheb_series# * cs,
4 const double x,
5 gsl_sf_resultcxx . . $ gsl_sf_result# * result)
6 {
7 int j;
8 double d = 0.0;
9 double dd = 0.0;
10
11 double y = (2.0*x - cs->acxx . . $ cheb_series_struct#a. - cs->bcxx . . $ cheb_series_struct#b.) / (cs->bcxx . . $ cheb_series_struct#b. - cs->acxx . . $ cheb_series_struct#a.);
12 double y2 = 2.0 * y;
13
14 double e = 0.0;
15
16 for(j = cs->ordercxx . . $ cheb_series_struct#order.; j>=1; j--) {
17 double temp = d;
18 d = y2*d - dd + cs->ccxx . . $ cheb_series_struct#c.[j];
19 e += fabs(y2*temp) + fabs(dd) + fabs(cs->ccxx . . $ cheb_series_struct#c.[j]);
20 dd = temp;
21 }
22
23 {
24 double temp = d;
25 d = y*d - dd + 0.5 * cs->ccxx . . $ cheb_series_struct#c.[0];
26 e += fabs(y*temp) + fabs(dd) + 0.5 * fabs(cs->ccxx . . $ cheb_series_struct#c.[0]);
27 }
28
29 result->valcxx . . $ gsl_sf_result_struct#val. = d;
30 result->errcxx . . $ gsl_sf_result_struct#err. = GSL_DBL_EPSILONcxx . . $ `external/gsl/gsl_machine.h:17:9`! * e + fabs(cs->ccxx . . $ cheb_series_struct#c.[cs->ordercxx . . $ cheb_series_struct#order.]);
31
32 return GSL_SUCCESScxx . . $ GSL_SUCCESS.;
33 }
34