All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
QuadExpr.h File Reference
#include <iosfwd>

Go to the source code of this file.

Classes

class  QuadExpr
 

Functions

QuadExpr operator+ (double v, const QuadExpr &e)
 
QuadExpr operator- (double v, const QuadExpr &e)
 
QuadExpr operator* (double v, const QuadExpr &e)
 
std::ostream & operator<< (std::ostream &, const QuadExpr &)
 

Function Documentation

QuadExpr operator* ( double  v,
const QuadExpr e 
)
inline

Definition at line 39 of file QuadExpr.h.

39 {return e*v;}
QuadExpr operator+ ( double  v,
const QuadExpr e 
)
inline

Definition at line 37 of file QuadExpr.h.

37 {return e+v;}
QuadExpr operator- ( double  v,
const QuadExpr e 
)
inline

Definition at line 38 of file QuadExpr.h.

38 {return QuadExpr(v)-e;}
do i e
std::ostream& operator<< ( std::ostream &  ,
const QuadExpr  
)

Definition at line 74 of file QuadExpr.cxx.

75 {
76  os << e.Quadratic() << "*x^2 + " << e.Linear() << "*x + " << e.Constant();
77  return os;
78 }
do i e