32 double a()
const {
return da; }
33 double b()
const {
return db; }
34 double c()
const {
return dc; }
52 Parabol(
void) : da(0.0), db(0.0), dc(0.0), s_det(0), s_dxzero(0) {}
55 : da(fa), db(fb), dc(fc), s_det(0), s_dxzero(0) {}
57 Parabol(
double x[3],
double y[3]);
58 Parabol(
double x[3],
double y[3],
int);
63 Parabol(
double x1,
double x2,
double x3,
double y1,
double y2,
double y3);
66 double eval(
const double x)
const {
return da * x * x + db * x + dc; }
76 t.det = db * db - 4 * da * dc;
87 mutable double dxzero[2];
90std::ostream&
operator<<(std::ostream& file,
const Parabol& f);
void put_a(const double fa)
void put_b(const double fb)
int find_zero(double xzero[2]) const
Parabol(double fa, double fb, double fc)
Parabol(void)
Default constructor.
double eval(const double x) const
Evaluate the function.
void put_c(const double fc)
double determinant() const
std::ostream & operator<<(std::ostream &file, const BGMesh &bgm)