Files
solver/MbDCode/Product.cpp
2023-05-12 21:50:11 -06:00

11 lines
195 B
C++

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