mintegrated 0.2.1

(Multi)dimensional integration using the MISER algorithm.


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

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:
dstats, scid
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

  • 0 downloads this month

  • 166 downloads total

Score:
0.1
Short URL:
mintegrated.dub.pm