commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles <gil...@harfang.homelinux.org>
Subject Re: [math] NaN value from evaluate method from PolynomialFunctionLagrangeForm class
Date Mon, 03 Jun 2013 08:53:02 GMT
Hello.

>
> I'm getting a NaN value after call evaluate method from
> PolynomialFunctionLagrangeForm class.
>
> Code:
>
> double[]x={0.0 , 1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 , 7.0 , 8.0 , 9.0 
> ,
> 10.0, ...}
> //x.length=3540
> double[]y={0.0 , 0.500213 , 4.3E-5 , 0.015038 , 0.237525 , 0.024837 ,
> 0.262735,...}
> //y.length=3540.
>
> So, calling 
> System.out.println(PolynomialFunctionLagrangeForm.evaluate(x,
> y, 0)) is returning NaN.
> What's this value means?
>
> May I post this to developers list?

This could be a bug, so, yes; but please create a test case that
demonstrates the problem (i.e. a minimal code that compiles and
runs).

Regards,
Gilles


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message