![]() |
CYCLUS
|
Linear functions f(x) = slope_ * x + intercept_.
Definition at line 34 of file symbolic_functions.h.
#include <symbolic_functions.h>
Public Member Functions | |
| LinearFunction (double s, double i=0.0) | |
| virtual std::string | Print () |
| virtual double | value (double x) |
Public Member Functions inherited from cyclus::toolkit::SymFunction | |
| virtual | ~SymFunction () |
Additional Inherited Members | |
Public Types inherited from cyclus::toolkit::SymFunction | |
| typedef boost::shared_ptr< SymFunction > | Ptr |
|
inline |
Constructor for a linear function.
| s | the slope |
| i | the intercept, with the default being 0 |
Definition at line 39 of file symbolic_functions.h.
|
virtual |
Print a string of the function.
Implements cyclus::toolkit::SymFunction.
Definition at line 17 of file symbolic_functions.cc.
|
virtual |
Evaluation for an double argument.
Implements cyclus::toolkit::SymFunction.
Definition at line 12 of file symbolic_functions.cc.