Files
solver/OndselSolver/ExpressionX.h
2025-08-07 21:43:45 -05:00

30 lines
995 B
C++

/***************************************************************************
* Copyright (c) 2023 Ondsel, Inc. *
* *
* This file is part of OndselSolver. *
* *
* See LICENSE file for details about copyright. *
***************************************************************************/
#pragma once
#include "FunctionX.h"
namespace MbD {
class ExpressionX : public FunctionX
{
//
public:
ExpressionX() = default;
ExpressionX(Symsptr arg);
void xexpression(Symsptr arg, Symsptr func);
Symsptr differentiateWRTx() override;
Symsptr differentiateWRT(Symsptr var) override;
double getValue() override;
Symsptr expression = std::make_shared<Symbolic>();
};
}