25 double a()
const {
return da; }
26 double b()
const {
return db; }
27 double c()
const {
return dc; }
28 double d()
const {
return dd; }
29 double s_xzero()
const {
return s_dxzero; }
47 Cubic() : da(0.0), db(0.0), dc(0.0), dd(0.0), s_dxzero(0) {}
48 Cubic(
double fa,
double fb,
double fc,
double fd)
49 : da(fa), db(fb), dc(fc), dd(fd), s_dxzero(0) {}
51 double y(
double x)
const {
52 return da * x * x * x + db * x * x + dc * x + dd;
68 double da, db, dc, dd;
75std::ostream&
operator<<(std::ostream& file,
const Cubic& f);
Find solution to cubic equation.
void find_zero(double_complex &z1, double_complex &z2, double_complex &z3) const
Cubic(double fa, double fb, double fc, double fd)
std::complex< double > double_complex
int find_maxmin(double xmm[2], double ymm[2], int s_mm[2]) const
int find_real_zero(double z[3]) const
std::ostream & operator<<(std::ostream &file, const BGMesh &bgm)