LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
QuadExpr.cxx File Reference
#include "larreco/SpacePointSolver/QuadExpr.h"
#include <cstdlib>
#include <iostream>
#include <ostream>
#include <string>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const QuadExpr &e)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const QuadExpr e 
)

Definition at line 72 of file QuadExpr.cxx.

References QuadExpr::Constant(), QuadExpr::Linear(), and QuadExpr::Quadratic().

Referenced by operator*().

73 {
74  os << e.Quadratic() << "*x^2 + " << e.Linear() << "*x + " << e.Constant();
75  return os;
76 }
double Linear() const
Definition: QuadExpr.h:15
double Constant() const
Definition: QuadExpr.h:16
double Quadratic() const
Definition: QuadExpr.h:14