MbDCode repo renamed to OndselSolver. Several *.asmt files working.

This commit is contained in:
Aik-Siong Koh
2023-08-07 08:21:33 -06:00
parent 6ef4789eca
commit e58446b9e2
287 changed files with 13387 additions and 778 deletions

View File

@@ -1,4 +1,7 @@
#include "FunctionXY.h"
#include "Sum.h"
using namespace MbD;
MbD::FunctionXY::FunctionXY()
{
@@ -7,3 +10,12 @@ 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);
}