Files
solver/OndselSolver/Exponential.cpp
2023-11-06 18:00:24 -07:00

32 lines
936 B
C++

/***************************************************************************
* Copyright (c) 2023 Ondsel, Inc. *
* *
* This file is part of OndselSolver. *
* *
* See LICENSE file for details about copyright. *
***************************************************************************/
#include "Exponential.h"
using namespace MbD;
MbD::Exponential::Exponential(Symsptr arg) : FunctionX(arg)
{
}
double MbD::Exponential::getValue()
{
return std::log(xx->getValue());
}
Symsptr MbD::Exponential::copyWith(Symsptr arg)
{
return std::make_shared<Exponential>(arg);
}
std::ostream& MbD::Exponential::printOn(std::ostream& s) const
{
s << "exp(" << *xx << ")";
return s;
}