old_contents: 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':'-'})
      
      xp = np.cos(theta)
      yp = np.sin(theta)
      z = xp*R
      w = yp*R
  
      plt.plot(z,w)
      plt.axis("equal")
      plt.show()
  
      return "Longitud de curva",LC, "Subtangente",Sbt, "Externa",Ext, "Ordenada media",OM, "Cuerda",C
  
new_contents: 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(A/4)
      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':'-'})
      
      xp = np.cos(theta)
      yp = np.sin(theta)
      z = xp*R
      w = yp*R
  
      plt.plot(z,w)
      plt.axis("equal")
      plt.show()
  
      return "Longitud de curva",LC, "Subtangente",Sbt, "Externa",Ext, "Ordenada media",OM, "Cuerda",C
  
subject: Update CurvHoriz.py