On Mon, 3 Jun 2013 15:37:06 -0300, Marcelo Damasceno wrote:
The code was in the first e-mail.

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.

System.out.println(PolynomialFunctionLagrangeForm.evaluate(x,y, 0))


The problem is: my x has 3540 elements. It's from a dataset. I debug the
evaluate method in PolynomialFunctionLagrangeForm. There is a array c
there, and it's inicialized with -Infinity value.
The NaN value happens when is processed the x[653]. The x[653] is a
ordinary element, with any particularity.

I changed the PolynomialFunctionLagrangeForm to Sline and worked fine. The
problem is that I would to know the degree and coefficients of the
polynomial.

How can I inform this bug to Apache community?

https://issues.apache.org/jira/browse/MATH

Gilles


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to