title: "Only size-1 arrays can be converted to Python scalars"
body: <p>I have this code:</p>
  <pre><code>R = float(input(&quot;Enter the arc's radius of curvature: &quot;))
  H = float(input(&quot;Enter the arc's height: &quot;))
  
  import matplotlib.pyplot as plt
  import numpy as np
  import math
  
  #cc = center of curvature
  cc = math.sqrt(R**2 - (H / 2)**2)
  x = np.linspace(-5,5,100)
  y = math.sqrt(R**2 - (x - cc)**2)
  plt.plot(x, y, 'c')
  plt.show()
  </code></pre>
  <p>and get this error:</p>
  <blockquote>
  <p>TypeError: only size-1 arrays can be converted to Python scalars</p>
  </blockquote>
  <p>How can I fix this?</p>