Description
Below is a simple test case which works in the Sun Java 1.5 but fails in Harmony.
This is derived from the HyperGeometricDistribution test, but is hopefully a bit easier to debug.
import org.apache.commons.math.util.MathUtils;
public class HarmMath {
private static void bcl(int m, int x, double exp)
{ final double logmx = MathUtils.binomialCoefficientLog(m, x); System.out.println(m+","+x+"="+logmx+" "+(logmx==exp?" == ":" != ")+" "+exp); } public static void main(String[] args) {
int[][]mk={{101,84},
,
{101,60},
{101,18},{101,17}};
double[]r=
;
for(int j=0; j<mk.length;j++)
}
}
The cases 101,83; 101,60; and 101,18 generate different results on Harmony.
Attachments
Issue Links
- is related to
-
HARMONY-5478 [classlib] [luni] Math.floor/ceil/rint can be implemented w/o JNI calls
- Closed