Գրեք սա: Log-lightning computation of capacity and Green's function