(rv, max=4, pow=False)
return _TR56(rv, sin, cos, lambda x: 1 - x, max=max, pow=pow)
Replacement of sin**2 with 1 - cos(x)**2.

    See _TR56 docstring for advanced use of ``max`` and ``pow``.

    Examples
    ========

    >>> from sympy.simplify.fu import TR5
    >>> from sympy.abc import x
    >>> from sympy import sin
    >>> TR5(sin(x)**2)
    -cos(x)**2 + 1
    >>> TR5(sin(x)**-2)  # unchanged
    sin(x)**(-2)
    >>> TR5(sin(x)**4)
    (-cos(x)**2 + 1)**2
Replacement of sin**2 with 1 - cos(x)**2.
Replacement of sin ** 2 with 1 - cos ( x ) ** 2 .
def TR5(rv, max=4, pow=False):
    """Replacement of sin**2 with 1 - cos(x)**2.

    See _TR56 docstring for advanced use of ``max`` and ``pow``.

    Examples
    ========

    >>> from sympy.simplify.fu import TR5
    >>> from sympy.abc import x
    >>> from sympy import sin
    >>> TR5(sin(x)**2)
    -cos(x)**2 + 1
    >>> TR5(sin(x)**-2)  # unchanged
    sin(x)**(-2)
    >>> TR5(sin(x)**4)
    (-cos(x)**2 + 1)**2
    """
    return _TR56(rv, sin, cos, lambda x: 1 - x, max=max, pow=pow)
def TR5 ( rv , max = 4 , pow = False ) : return _TR56 ( rv , sin , cos , lambda x : 1 - x , max = max , pow = pow )