ASMT output, MBDyn input and output done.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "ExpressionX.h"
|
||||
#include "Constant.h"
|
||||
|
||||
using namespace MbD;
|
||||
|
||||
@@ -23,8 +24,14 @@ void MbD::ExpressionX::xexpression(Symsptr arg, Symsptr func)
|
||||
expression = func;
|
||||
}
|
||||
|
||||
Symsptr MbD::ExpressionX::differentiateWRTx()
|
||||
{
|
||||
return expression->differentiateWRT(xx);
|
||||
}
|
||||
|
||||
Symsptr MbD::ExpressionX::differentiateWRT(Symsptr var)
|
||||
{
|
||||
if (this == var.get()) return sptrConstant(1.0);
|
||||
return expression->differentiateWRT(var);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user