def tanpi(c): "tan(pi*x)." d = fpu.up(lambda: c.sup - c.inf) if d != d or d >= 1.0: return (-fpu.infinity, +fpu.infinity), if 0.0 in cospi(interval.new((c,))): def denan(x, ifnan): return x if x == x else ifnan return ( (denan(crlibm.tanpi_rd(c.inf), fpu.infinity), fpu.infinity), (-fpu.infinity, denan(crlibm.tanpi_ru(c.sup), -fpu.infinity))) else: return (crlibm.tanpi_rd(c.inf), crlibm.tanpi_ru(c.sup)),
def tanpi(c): "tan(pi*x)." d = fpu.up(lambda: c.sup - c.inf) if d != d or d >= 1.0: return (-fpu.infinity, +fpu.infinity), if 0.0 in cospi(interval.new((c, ))): def denan(x, ifnan): return x if x == x else ifnan return (denan(crlibm.tanpi_rd(c.inf), fpu.infinity), fpu.infinity), (-fpu.infinity, denan(crlibm.tanpi_ru(c.sup), -fpu.infinity)) else: return (crlibm.tanpi_rd(c.inf), crlibm.tanpi_ru(c.sup)),