import math


def A12_6_3_5(Ipp, rt, Fymin, GammaRPv = 1.10):
    """
    A.12.6.3.5 Torsional shear
    
    Tu is the torsional moment due to factored actions;
    Ipp is the polar moment of inertia of the non-circular prismatic member;
    rt is the maximum distance from centroid to an extreme fibre;
    GammaRPv is the partial resistance factor for torsional and beam shear strengths
    """
    #
    # Tvp is the representative torsional strength of the non-circular prismatic member
    _Tvp = Ipp * Fymin / (rt * math.sqrt(3.0))
    #
    # Closed-section non-circular prismatic members subjected to torsional shear forces
    # due to factored actions should satisfy:
    _Tumax = _Tvp / GammaRPv
    #
    # Open-section non-circular prismatic members subjected to torsional shear forces 
    # should be checked as appropriate.
    #
    print("")
    print("A.12.6.3.5 Torsional shear")
    print("Tvp   = {: 1.4e}".format(_Tvp))
    print("Tumax = {: 1.4e}".format(_Tumax))
    return _Tumax
    #
    #