# Revision history [back]

sage: def lchi4(s):
....:     return gp('lfun(lfuncreate(-4), %f)' %s)
....:
sage: lchi4(1)
0.78539816339744830961566084581987572105


I hope this might help for those who have the same problem. Please note that this is not the solution for DirichletGroup(4).list()[1].lfunction() but it works for equivalent function defined in Pari/GP.

sage: def lchi4(s):