Where to import ROOT::Math::assoc_legendre?

Hello,

I’m trying to convert one C++ script to pyroot. The problem is I can not figure out from which module to import function ROOT::Math::assoc_legendre. I tried Math and MathMore, and found nothing from Google… Do anyone know how to do this? Thanks.

Regards,
Dongliang

Hi Dongliang,

what is needed here is an explicit load of libMathMore.

>>> import ROOT
>>> ROOT.Math.assoc_legendre(1,1,1)
>>> ROOT.gSystem.Load("libMathMore.so")
0
>>> ROOT.Math.assoc_legendre(1,1,1)
0.0

Cheers,
Danilo

Hi Danilo,

Yes, your method works. Thanks a lot.

Regards,
Dongliang