  Studied is a generalization of Zagier's q-series identity. We introduce a
generating function of L-functions at non-positive integers, which is regarded
as a half-differential of the Andrews--Gordon q-series. When q is a root of
unity, the generating function coincides with the quantum invariant for the
torus knot.
