[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-user
Subject:    Re: [math] NaN value from evaluate method from PolynomialFunctionLagrangeForm class
From:       Gilles <gilles () harfang ! homelinux ! org>
Date:       2013-06-07 14:52:05
Message-ID: 908b30fec61ae1ffbdc9f91821fdb8a5 () scarlet ! be
[Download RAW message or body]

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: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic