Change the project name from MbDCode to OndselSolver.

This commit is contained in:
Paddle
2023-10-04 18:35:36 +02:00
parent 02e77eb6cc
commit 9fd22a5504
592 changed files with 277 additions and 276 deletions

View File

@@ -0,0 +1,29 @@
/***************************************************************************
* Copyright (c) 2023 Ondsel, Inc. *
* *
* This file is part of OndselSolver. *
* *
* See LICENSE file for details about copyright. *
***************************************************************************/
#include "FunctionXY.h"
#include "Sum.h"
using namespace MbD;
MbD::FunctionXY::FunctionXY()
{
}
MbD::FunctionXY::FunctionXY(Symsptr base, Symsptr exp) : x(base), y(exp)
{
}
void MbD::FunctionXY::arguments(Symsptr args)
{
//args is a Sum with "terms" containing the actual arguments
auto sum = std::static_pointer_cast<Sum>(args);
assert(sum->terms->size() == 2);
x = sum->terms->at(0);
y = sum->terms->at(1);
}