MbDCode repo renamed to OndselSolver. Several *.asmt files working.
This commit is contained in:
18
MbDCode/Exponential.cpp
Normal file
18
MbDCode/Exponential.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "Exponential.h"
|
||||
|
||||
using namespace MbD;
|
||||
|
||||
MbD::Exponential::Exponential(Symsptr arg) : FunctionX(arg)
|
||||
{
|
||||
}
|
||||
|
||||
double MbD::Exponential::getValue()
|
||||
{
|
||||
return std::log(xx->getValue());
|
||||
}
|
||||
|
||||
std::ostream& MbD::Exponential::printOn(std::ostream& s) const
|
||||
{
|
||||
s << "exp(" << xx << ")";
|
||||
return s;
|
||||
}
|
||||
Reference in New Issue
Block a user