26 lines
775 B
C++
26 lines
775 B
C++
/***************************************************************************
|
|
* Copyright (c) 2023 Ondsel, Inc. *
|
|
* *
|
|
* This file is part of OndselSolver. *
|
|
* *
|
|
* See LICENSE file for details about copyright. *
|
|
***************************************************************************/
|
|
|
|
#include "Ln.h"
|
|
|
|
using namespace MbD;
|
|
|
|
MbD::Ln::Ln(Symsptr arg) : FunctionX(arg)
|
|
{
|
|
}
|
|
|
|
double MbD::Ln::getValue()
|
|
{
|
|
return std::log(xx->getValue());
|
|
}
|
|
|
|
Symsptr MbD::Ln::copyWith(Symsptr arg)
|
|
{
|
|
return std::make_shared<Ln>(arg);
|
|
}
|