<commit_before>def CurvHor(R, A): 
    import numpy as np
    import matplotlib.pylab as plt
    def tan(grados):
        return np.tan(np.radians(grados))
    def sen(grados):
        return np.sin(np.radians(grados))
    pi = np.pi
    theta = np.linspace(0, np.pi/2, 30)
    %matplotlib inline
    
#Calculos
    LC = A*pi*R/180
    Sbt = R*tan(A/2)
    Ext = Sbt*tan(22.5)
    B = Sbt*sen(A/2)
    OM = B-Ext
    C = 2*R*sen(A/2)
    
    plt.annotate ('', (R, 0), (0, R), arrowprops={'arrowstyle':'-'})
    plt.annotate ('', (R, 0), (R, R), arrowprops={'arrowstyle':'-'})
    plt.annotate ('', (R, R), (0, R), arrowprops={'arrowstyle':'-'})

    z = x*R
    w = y*R

    plt.plot(z,w)
    plt.axis("equal")
    plt.show()

    return "Longitud de curva",LC, "Subtangente",Sbt, "Externa",Ext, "Ordenada media",OM, "Cuerda",C<commit_msg>Update CurvHoriz.py<commit_after>def CurvHor(R, A): 
    import numpy as np
    import matplotlib.pylab as plt
    def tan(grados):
        return np.tan(np.radians(grados))
    def sen(grados):
        return np.sin(np.radians(grados))
    pi = np.pi
    theta = np.linspace(0, np.pi/2, 30)
    
#Calculos
    LC = A*pi*R/180
    Sbt = R*tan(A/2)
    Ext = Sbt*tan(22.5)
    B = Sbt*sen(A/2)
    OM = B-Ext
    C = 2*R*sen(A/2)
    
    plt.annotate ('', (R, 0), (0, R), arrowprops={'arrowstyle':'-'})
    plt.annotate ('', (R, 0), (R, R), arrowprops={'arrowstyle':'-'})
    plt.annotate ('', (R, R), (0, R), arrowprops={'arrowstyle':'-'})

    z = x*R
    w = y*R

    plt.plot(z,w)
    plt.axis("equal")
    plt.show()

    return "Longitud de curva",LC, "Subtangente",Sbt, "Externa",Ext, "Ordenada media",OM, "Cuerda",C

{'fraction_non_alphanumeric': 0.19605568445475638, 'fraction_numerical': 0.02088167053364269, 'mean_word_length': 2.3560311284046693, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '616446', 'n_tokens_mistral': 779, 'n_tokens_neox': 722, 'n_words': 146}