function PrintTable(t, indent)
if not indent then indent = 0 end
strform = "%"..tostring(indent).."s"
for k,v in pairs(t) do
if (type(v) == "table") then
print(string.rep(" ", indent)..k.." ".."table")
PrintTable(v, indent+2)
else
print(string.rep(" ", indent)..k.." "..tostring(v))
end
end
end
print("GOLD_BEGIN")
q =
chi_math.QuadratureGaussLegendre.Create({N = 4, verbose =
true})
print("qpoints:")
PrintTable(qdata.qpoints, 2)
print("weights:")
PrintTable(qdata.weights, 2)
print()
--################################################
print("qpoints:")
PrintTable(qdata.qpoints, 2)
print("weights:")
PrintTable(qdata.weights, 2)
print("
chiYlm(0, 0, 45*math.pi/180.0, 45*math.pi/180.0)",
chiYlm(0, 0, 45*math.pi/180.0, 45*math.pi/180.0))
print("
chiYlm(1, 0, 45*math.pi/180.0, 45*math.pi/180.0)",
chiYlm(1, 0, 45*math.pi/180.0, 45*math.pi/180.0))
print("GOLD_END")
void chiLegendre(int N, double x)
void chiYlm(int ell, int m, double theta, double varphi)
void chiLegendreDerivative(int N, double x)