Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000223ILNumerics[All Projects] Bugspublic2015-11-30 09:462015-11-30 18:30
Reporterarnaud 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionopen 
PlatformWinOSWindows 7 Enterprise SP1OS Version
Summary0000223: betaIncomplete function returns wrong values
DescriptionThe function output is either absurdly or just slightly off, depending on the input parameters. Either way it is basically unusable. Please validate your implementation against any available library (Matlab, boost, GSL, cephes). The following test case illustrates a few examples (the expected values are taken from Matlab's betainc):

[Test]
public void BetaIncompleteILMath()
{
    Assert.That(ILMath.betaIncomplete(1, 5, 0.5), Is.EqualTo(0.96875).Within(1e-14));
    Assert.That(ILMath.betaIncomplete(0.5, 50, 0.1), Is.EqualTo(0.99879585016744).Within(1e-14));
    Assert.That(ILMath.betaIncomplete(0.5, 10, 0.001), Is.EqualTo(0.11110329087514).Within(1e-14));
}

The same test case passes with the implementation in the boost library (ibeta).
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000228)
roman (developer)
2015-11-30 18:30

Thank You for reporting. Described bug is already resolved, and will be completely fixed in Release 4.10.

- Issue History
Date Modified Username Field Change
2015-11-30 09:46 arnaud New Issue
2015-11-30 18:30 roman Note Added: 0000228
2015-11-30 18:30 roman Status new => resolved


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker