Files
solver/MbDCode/Sum.cpp
2023-05-20 17:55:13 -06:00

11 lines
182 B
C++

#include "Sum.h"
using namespace MbD;
double Sum::getValue()
{
double answer = 0.0;
for (int i = 0; i < terms->size(); i++) answer += terms->at(i)->getValue();
return answer;
}