title: How to plot vectorized mathematical expression function?
body: <p>I have developed a code for vectorized function and tried to plot the function but it's not showing me the result.
  ()=(−1)</p>
  
  <p>I have imported the required libraries in this code, at  =1  the value of the function is 0. Also at  =1.1  the value is just a bit above 0.1. This implies that the derivative of the function at  =1  is a bit above  1</p>
  
  <pre><code># display plot of function for indicated range here.  
  import matplotlib.pylab as plt
  from pylab import ylim
  x = 5
  def f(x):
      return x * (x - 1)
  f(x)
  y = f(x)
  plt.figure(figsize=(15,5))
  ylim(0.9,1.1)
  plt.plot(y)
  plt.title('Vectorized function plot')
  plt.xlabel('x-axis')
  plt.ylabel('y-axis')
  </code></pre>
  
  <p>Need help to understand this problem.</p>