code: def test_minimize_quadratic_1d(self):
      a = 5
      b = -1
  
      t, y = minimize_quadratic_1d(a, b, 1, 2)
      assert_equal(t, 1)
      assert_equal(y, a * t**2 + b * t)
  
      t, y = minimize_quadratic_1d(a, b, -2, -1)
      assert_equal(t, -1)
      assert_equal(y, a * t**2 + b * t)
  
      t, y = minimize_quadratic_1d(a, b, -1, 1)
      assert_equal(t, 0.1)
      assert_equal(y, a * t**2 + b * t)
  
      c = 10
      t, y = minimize_quadratic_1d(a, b, -1, 1, c=c)
      assert_equal(t, 0.1)
      assert_equal(y, a * t**2 + b * t + c)
  
imports: from __future__ import division, absolute_import, print_function
  from numpy.testing import assert_, assert_allclose, assert_equal
  from pytest import raises
  import numpy
  from scipy.sparse.linalg import LinearOperator
  from scipy.optimize._lsq.common import step_size_to_bound, find_active_constraints, make_strictly_feasible, CL_scaling_vector, intersect_trust_region, build_quadratic_1d, minimize_quadratic_1d, evaluate_quadratic, reflective_transformation, left_multiplied_operator, right_multiplied_operator
label_desc: Use image node_id 3 for calling the TestQuadraticFunction obj's underlying member method code with example usage: obj.test_minimize_quadratic_1d() without return types