CYCLUS
Loading...
Searching...
No Matches
cyclus::toolkit::ExpFunctionFactory Class Reference

Detailed Description

A concrete factory for exponential functions.

Definition at line 47 of file symbolic_function_factories.h.

#include <symbolic_function_factories.h>

Inheritance diagram for cyclus::toolkit::ExpFunctionFactory:
cyclus::toolkit::SymbFunctionFactory

Public Member Functions

virtual SymFunction::Ptr GetFunctionPtr (std::string params)
 
- Public Member Functions inherited from cyclus::toolkit::SymbFunctionFactory
virtual ~SymbFunctionFactory ()
 

Member Function Documentation

◆ GetFunctionPtr()

SymFunction::Ptr cyclus::toolkit::ExpFunctionFactory::GetFunctionPtr ( std::string params)
virtual

Return a function pointer to a exponential function.

Parameters
paramsa string of space-separated values for c, a, and b in the equation

\[
  y = ce^{ax} + b
\]

Returns
the exponential function

Example

SymFunction::Ptr func = fac.GetFunctionPtr("2.5 0.1 5"); // y = 2.5exp(0.1x) + 5
boost::shared_ptr< SymFunction > Ptr
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters

Implements cyclus::toolkit::SymbFunctionFactory.

Definition at line 24 of file symbolic_function_factories.cc.


The documentation for this class was generated from the following files: