#include #include double f(double x){ // return cos(x); return x*x*x*x; } double riemann(int n,double a,double b){ double h=(b-a)/n; double r=0; for(int k=0;k