TMath library

Hi,

Is there a Math library for jacobi elliptical function sn(x,k)?

Thanks. Renato.

Hi,

These functions are not part of ROOT, maybe they can be derived from the elliptical integral, which is part of MathMore,

project-mathlibs.web.cern.ch/pro … 327bddf7d8

They are however provided by GSL, which is used by MathMore. See

gnu.org/software/gsl/manual/ … _0029.html

Lorenzo

Hi Lorenzo,

I installed GSL via command:

/.configure --disable-shared

make

apparently its compiled correctly,

but i can’t compile some functions, for example bessel functions:

[quote]#include “Math/SpecFunc.h”

void Bessel() {

TCanvas *c1 = new TCanvas("c1","bessel",200,10,700,500);
c1->SetFillColor(42);
c1->SetGrid();

// detalhes da função
j = new TF1("bessel0","ROOT::Math::cyl_bessel_j(0,x)",-1,1);
j->SetLineColor(1);
j->SetLineStyle(1);
j->SetLineWidth(4);
j->SetTitle("");


j->Draw();

}
[/quote]

I got some error, to know:

Error in TFormula::Compile: Bad numerical expression : "ROOT::Math::cyl_bessel_j(0,x)"
Error in TF1::TF1: function: bessel0/ROOT::Math::cyl_bessel_j(0,x) has 0 parameters instead of 1
Warning in TCanvas::ResizePad: c1 height changed from 64000 to 10

Error in TGaxis::PaintAxis: length of axis is 0
Error in TGaxis::PaintAxis: length of axis is 0
root [1] Warning in TCanvas::ResizePad: c1 height changed from 64000 to 10

Warning in TCanvas::ResizePad: c1 height changed from 64000 to 10

Whats the problem?

Renato.

Hi

Do you have LibMathMore built? You can check by doing

If it is buit, you can try by doing before running the script in the Root prompt:[code]

gSystem->Load(“libMathMore”)

[/code]

Lorenzo