19 lines
256 B
C++
19 lines
256 B
C++
#include "Abs.h"
|
|
|
|
using namespace MbD;
|
|
|
|
MbD::Abs::Abs(Symsptr arg) : FunctionX(arg)
|
|
{
|
|
}
|
|
|
|
double MbD::Abs::getValue()
|
|
{
|
|
return std::abs(xx->getValue());
|
|
}
|
|
|
|
std::ostream& MbD::Abs::printOn(std::ostream& s) const
|
|
{
|
|
s << "abs(" << xx << ")";
|
|
return s;
|
|
}
|