Skip to content

Instantly share code, notes, and snippets.

@Joker-vD
Joker-vD / quadratures.cs
Created July 16, 2019 22:54
Some horribly unoptimized quadrature rules, integrating the "black swan" function from Eric Lippert's "Fixing Random" series.
using System;
using System.Collections.Generic;
using System.Linq;
namespace Quadratures
{
interface Integrator
{
double Integrate(Func<double, double> f, double a, double b);
}