runPosIC, initializeGlobally

This commit is contained in:
Aik-Siong Koh
2023-05-27 21:43:09 -06:00
parent 6a577c052c
commit 9ddbdca742
139 changed files with 2401 additions and 431 deletions

View File

@@ -10,7 +10,17 @@ Constant::Constant(double val) : Variable(val)
{
}
std::shared_ptr<Symbolic> Constant::differentiateWRT(std::shared_ptr<Symbolic> var)
Symsptr Constant::differentiateWRT(Symsptr sptr, Symsptr var)
{
return std::make_shared<Constant>(0.0);
}
bool MbD::Constant::isConstant()
{
return true;
}
std::ostream& MbD::Constant::printOn(std::ostream& s) const
{
return s << this->value;
}