title: Generating Point Sets for Reciprocal Function
body: <p>everyone.</p>
  
  <p>I am writing a function that generates the points to graph a reciprocal function. Here is the code :</p>
  
  <pre><code>def genRecp(xValrange=3, shiftHoriz=0, shiftVert=0, vertStrech=1, horizStrech=1):
      #setup variables for processing
      xrangeP = xValrange
      xrangeN = xrangeP - xrangeP * 2
      vals = []
      #start adding values to array
      while xrangeN &lt;= xrangeP:
          curX = xrangeN
          if curX == 0:
              xrangeN += 1
              continue
          #generate y values
          curY = vertStrech * (1 / (horizStrech * curX - shiftHoriz)) + shiftVert
          newVal = [curX, curY]
          #add value to array
          vals.append(newVal)
          #LOOOOOOP!
          xrangeN +=1
      return vals
  </code></pre>
  
  <p>The code seems fine, however, when I execute the following command :</p>
  
  <pre><code>genRecp()
  </code></pre>
  
  <p>I receive this output : <code>[[-3, -1], [-2, -1], [-1, -1], [1, 1], [2, 0], [3, 0]]</code> which is clearly not an array of base points for a reciprocal function.</p>
  
  <p>What am I doing wrong? Thank you in advance.</p>