parameters: (A, n)
return_statement: return t
docstring: Compute a reasonable set of time samples for the response time.
  
      This function is used by `impulse`, `impulse2`, `step` and `step2`
      to compute the response time when the `T` argument to the function
      is None.
  
      Parameters
      ----------
      A : array_like
          The system matrix, which is square.
      n : int
          The number of time samples to generate.
  
      Returns
      -------
      t : ndarray
          The 1-D array of length `n` of time samples at which the response
          is to be computed.
docstring_summary: Compute a reasonable set of time samples for the response time.
docstring_tokens: Compute a reasonable set of time samples for the response time .
function: def _default_response_times(A, n):
      """Compute a reasonable set of time samples for the response time.
  
      This function is used by `impulse`, `impulse2`, `step` and `step2`
      to compute the response time when the `T` argument to the function
      is None.
  
      Parameters
      ----------
      A : array_like
          The system matrix, which is square.
      n : int
          The number of time samples to generate.
  
      Returns
      -------
      t : ndarray
          The 1-D array of length `n` of time samples at which the response
          is to be computed.
      """
      # Create a reasonable time interval.
      # TODO: This could use some more work.
      # For example, what is expected when the system is unstable?
      vals = linalg.eigvals(A)
      r = min(abs(real(vals)))
      if r == 0.0:
          r = 1.0
      tc = 1.0 / r
      t = linspace(0.0, 7 * tc, n)
      return t
function_tokens: def _default_response_times ( A , n ) : # Create a reasonable time interval. # TODO: This could use some more work. # For example, what is expected when the system is unstable? vals = linalg . eigvals ( A ) r = min ( abs ( real ( vals ) ) ) if r == 0.0 : r = 1.0 tc = 1.0 / r t = linspace ( 0.0 , 7 * tc , n ) return t