Prev: Wolfram Alpha app for iPhone is now €0.79
Next: The side-effects of mixing TraditionalForm inside expressions.
From: Raffy on 4 Jul 2010 06:10 The support for NaN -> Indeterminate over JLink from Java -> Mathematica is completely broken. double[] f1() { return new double[]{Double.NaN}; } double[] f2() { return new double[]{1/0D}; } Evaluating f1 from Mathematica will return {-1024.} Evaluating f2 from Mathematica will kill the kernel. The desired behavior should be {Indeterminate} in both cases. Are there any fixes for this or am I stuck mapping NaN's to a different value? |