Re: Fitting error

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Fri, 29 May 2009 17:47:39 +0200


Hi,

  you are calling the legendre polynomial with wrong values of the parameters.
If you are using ROOT::Math::assoc_legendre(l,m,x)

  you must have l >= 0 l >= m and |x| < 1

  as documented in

http://project-mathlibs.web.cern.ch/project-mathlibs/sw/html/group__SpecFunc.html#gf9311feb82d7aca57ea9c00c70958d8b

  You can probably contraint your fitting parameters to satisfy this conditions,

  Cheers

  Lorenzo

On May 29, 2009, at 4:20 PM, Paraduan Hutauruk wrote:

> Dear all,
>
> I tried to fit my data with associated Legendre polynomial function.
> In the result, i got some errors come out. The errors are :
>
> Error in <GSLError>: Error 1 in legendre_poly.c at 310 : domain error
> Error in <GSLError>: Error 1 in legendre_poly.c at 776 :
> gsl_sf_legendre_Plm_e(l, m, x, &result)
> Error in <GSLError>: Error 1 in legendre_poly.c at 310 : domain error
> Error in <GSLError>: Error 1 in legendre_poly.c at 776 :
> gsl_sf_legendre_Plm_e(l, m, x, &result)
> Error in <GSLError>: Error 1 in legendre_poly.c at 310 : domain error
> Error in <GSLError>: Error 1 in legendre_poly.c at 776 :
> gsl_sf_legendre_Plm_e(l, m, x, &result)
>
> This errors always appeared each time i do fitting.
>
> Does anyone help me please to solve this problem or guide me to the
> right way?
>
> Many thanks for help.
>
> Cheers,
> Parada
>
Received on Fri May 29 2009 - 17:47:54 CEST

This archive was generated by hypermail 2.2.0 : Mon Jun 01 2009 - 11:50:02 CEST