class_docstr: Test case for a simple constrained entropy maximization problem
  (the machine translation example of Berger et al in
  Computational Linguistics, vol 22, num 1, pp 39--72, 1996.)
class_docstr_tok: ["Test","case","for","a","simple","constrained","entropy","maximization","problem","(","the","machine","translation","example","of","Berger","et","al","in","Computational","Linguistics",",","vol","22",",","num","1",",","pp","39","--","72",",","1996",".",")"]
code: def test_root_broyden1(self):
      res = root(
          F,
          F.xin,
          method="broyden1",
          options={"nit": 12, "jac_options": {"alpha": 1}},
      )
      assert_(nonlin.norm(res.x) < 1e-9)
      assert_(nonlin.norm(res.fun) < 1e-9)
  
imports: from numpy.testing import assert_
  import pytest
  from scipy.optimize import _nonlin, root
  from scipy.sparse import csr_array
  from numpy import diag, dot
  from numpy.linalg import inv
  import numpy
  from .test_minpack import pressure_network
label_desc: Use image node_id 7 for calling the TestNonlinOldTests obj's underlying member method code with example usage: obj.test_root_broyden1() without return types