c++ Simpson积分
//
// main.cpp
// 5.14 01
//
// Created by Shatong on 2020/5/14.
// Copyright © 2020 Shatong. All rights reserved.
//
#include <iostream>
#include <cmath>
using namespace std;
class Base{
public:
double result,a,b,step;
int n;//n 是偶数
virtual double fun(double x)=0;
virtual void get()=0;
Base(double ra=0,double rb=0,int nn=2000){
a=ra;b=rb;n=nn;result