title: Octave -- Plotting a tan function
body: <p>While reading a tutorial on Octave I found the following line of code that produces a sin plot:</p>
  
  <pre><code>fplot (@sin, [-10, 10]);
  </code></pre>
  
  <p>I decided I wanted to plot tan instead of sin so I entered the following command:</p>
  
  <pre><code>fplot (@tan, [-10, 10]);
  </code></pre>
  
  <p>When I did this I got the following plot:
  <a href="https://i.stack.imgur.com/ZNUba.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZNUba.png" alt="enter image description here"></a></p>
  
  <p>Why did I get that graph instead of one of a tan function?  How can I plot a tan function?</p>