(rv)
return bottom_up(rv, f)
Replace sec, csc with 1/cos, 1/sin

    Examples
    ========

    >>> from sympy.simplify.fu import TR1, sec, csc
    >>> from sympy.abc import x
    >>> TR1(2*csc(x) + sec(x))
    1/cos(x) + 2/sin(x)
Replace sec, csc with 1/cos, 1/sin
Replace sec csc with 1 / cos 1 / sin
def TR1(rv):
    """Replace sec, csc with 1/cos, 1/sin

    Examples
    ========

    >>> from sympy.simplify.fu import TR1, sec, csc
    >>> from sympy.abc import x
    >>> TR1(2*csc(x) + sec(x))
    1/cos(x) + 2/sin(x)
    """

    def f(rv):
        if rv.func is sec:
            a = rv.args[0]
            return S.One/cos(a)
        elif rv.func is csc:
            a = rv.args[0]
            return S.One/sin(a)
        return rv

    return bottom_up(rv, f)
def TR1 ( rv ) : def f ( rv ) : if rv . func is sec : a = rv . args [ 0 ] return S . One / cos ( a ) elif rv . func is csc : a = rv . args [ 0 ] return S . One / sin ( a ) return rv return bottom_up ( rv , f )