LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
QuadExpr.cxx File Reference
#include "QuadExpr.h"
#include <cstdlib>
#include <iostream>

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:16
double Constant() const
Definition: QuadExpr.h:17
double Quadratic() const
Definition: QuadExpr.h:15