|
JK2eA
|
00001 #pragma once 00002 #include <cmath> 00003 00007 class IntegrationFNC { 00008 public: 00009 virtual float operator()(float) = 0; 00010 }; 00011 00012 float TrapezoidRule(const float a, const float b, IntegrationFNC& f, const unsigned int step); 00013 float Romberg(const float a, const float b, IntegrationFNC& f, const unsigned int order);
1.8.0