mintegrated 0.2.1

(Multi)dimensional integration using the MISER algorithm.


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Mintegrated Build Status

Library for (multi)dimensional integration written in D. Currently limited to an implementation of the MISER algorithm

unittest
{
    import std.math : PI, pow;
    import std.stdio : writeln;
    auto func = function( double[] xs )
    {
        if (pow(xs[0],2)+pow(xs[1],2)<= 1.0)
            return 1.0;
        return 0.0;
    };

    auto result = integrate( func, [-1.0,-1], [1.0,1.0], 1e-5, 1e-7 );
    result.writeln;
    assert( result.value <= PI + 1e-3 );
    assert( result.value >= PI - 1e-3 );
}
Authors:
Edwin van Leeuwen
Dependencies:
scid, dstats
Versions:
0.2.1 2015-Sep-11
0.2.0 2015-Sep-11
0.1.2 2015-Sep-02
0.1.1 2015-Aug-27
0.1.0 2015-Aug-27
Show all 9 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 9 downloads this month

  • 151 downloads total