#pragma once #include "FunctionWithManyArgs.h" namespace MbD { class Sum : public FunctionWithManyArgs { public: Sum(std::shared_ptr term) : FunctionWithManyArgs(term) {} Sum(std::shared_ptr term, std::shared_ptr term1) : FunctionWithManyArgs(term, term1) {} Sum(std::shared_ptr term, std::shared_ptr term1, std::shared_ptr term2) : FunctionWithManyArgs(term, term1, term2) {} Sum(std::shared_ptr>> _terms) : FunctionWithManyArgs(_terms) {} double getValue() override; }; }