CS作业代写 CS100_HW10_POLYNOMIALPARSER_HPP_

#ifndef CS100_HW10_POLYNOMIALPARSER_HPP_
#define CS100_HW10_POLYNOMIALPARSER_HPP_

#include “polynomial.hpp”

Copyright By PowCoder代写 加微信 powcoder

#include
#include

#include

class PolynomialParser {
//procedure to compute a polynomial function as a new polynomial
//takes a map of polynomials that have been loaded and are used in the function
// (key=name of polynomial)
// (value=the polynomial)
Polynomial compute_polynomial( const std::string& expression,
std::map& polys);

//procedure to compute a lambda function that represents the polynomial function
//parameters are same than for the previous function
typedef std::function scalarFct;
scalarFct compute_lambda( const std::string& expression,
std::map & polys);

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com