title: TypeError in Jython?
body: <p>I'm trying to make two lines across a circle, like an X. Since it's an X, to find the <code>(x,y)</code> I just multiplied sqrt(2)/2 by the radius and then added or subtracted it from the <code>(x,y)</code> origin depending on what corner of the circle it was in. However I keep getting a TypeError 'The error was: 2nd arg can't be coerced to int' This is what I have: </p>
  
  <pre><code>#starting/ending points of the line
  a1 = z - ((sqrt(2) / 2)*(r1))
  b1 = w - ((sqrt(2) / 2)*(r1))
  a2 = z + ((sqrt(2) / 2)*(r1))
  b2 = w + ((sqrt(2) / 2)*(r1))
  c1 = z - ((sqrt(2) / 2)*(r1))
  d1 = w + ((sqrt(2) / 2)*(r1))
  c2 = z + ((sqrt(2) / 2)*(r1))
  d2 = w - ((sqrt(2) / 2)*(r1))
  pic.addLine(black, a1, b1, a2, b2)
  pic.addLine(black, c1, d1, c2, d2)
  </code></pre>
  
  <p>...where <em>z</em> is the x origin, <em>w</em> is the y origin, and <em>r1</em> is the radius.
  What am I doing wrong here? This what I'm getting :</p>
  
  <p><img src="https://i.stack.imgur.com/pqEL7.png" alt="enter image description here"></p>