Home | History | Annotate | Download | only in db_vlvm

Lines Matching refs:roots

28 void db_SolveCubic(double *roots,int *nr_roots,double a,double b,double c,double d)
35 /*For nondegenerate cubics with three roots
40 if(a==0.0) db_SolveQuadratic(roots,nr_roots,b,c,d);
68 roots[0]= -2.0*srq*cos_theta_through3-bp_through3;
69 roots[1]=srq*min2_cos_theta_plu-bp_through3;
70 roots[2]=srq*min2_cos_theta_min-bp_through3;
77 if(A!=0.0) roots[0]=A+q/A-bp_through3;
78 else roots[0]= -bp_through3;
87 roots[0]= -2.0*si_r_srq-bp_through3;
89 roots[1]=si_r_srq-bp_through3;
94 void db_SolveQuartic(double *roots,int *nr_roots,double a,double b,double c,double d,double e)
101 /*Cubic polynomial roots, nr of roots and coefficients*/
105 /*nr additional roots from second quadratic*/
111 if(a==0.0) db_SolveCubic(roots,nr_roots,b,c,d,e);
114 db_SolveCubic(roots,nr_roots,a,b,c,d);
115 roots[*nr_roots]=0.0;
136 /*Solve it for roots*/
152 db_SolveQuadratic(roots,nr_roots,
155 db_SolveQuadratic(&roots[*nr_roots],&addroots,
166 void db_SolveQuarticForced(double *roots,int *nr_roots,double a,double b,double c,double d,double e)
173 /*Cubic polynomial roots, nr of roots and coefficients*/
177 /*nr additional roots from second quadratic*/
183 if(a==0.0) db_SolveCubic(roots,nr_roots,b,c,d,e);
186 db_SolveCubic(roots,nr_roots,a,b,c,d);
187 roots[*nr_roots]=0.0;
208 /*Solve it for roots*/
225 db_SolveQuadratic(roots,nr_roots,
228 db_SolveQuadratic(&roots[*nr_roots],&addroots,