{"action":"opened","issue":{"url":"https://api.github.com/repos/scipy/scipy/issues/7126","repository_url":"https://api.github.com/repos/scipy/scipy","labels_url":"https://api.github.com/repos/scipy/scipy/issues/7126/labels{/name}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/7126/comments","events_url":"https://api.github.com/repos/scipy/scipy/issues/7126/events","html_url":"https://github.com/scipy/scipy/issues/7126","id":211674668,"number":7126,"title":"scipy.optimize.fsolve Jacobian argument incomplete in the documentation","user":{"login":"gautamdivgi","id":6981001,"avatar_url":"https://avatars3.githubusercontent.com/u/6981001?v=3","gravatar_id":"","url":"https://api.github.com/users/gautamdivgi","html_url":"https://github.com/gautamdivgi","followers_url":"https://api.github.com/users/gautamdivgi/followers","following_url":"https://api.github.com/users/gautamdivgi/following{/other_user}","gists_url":"https://api.github.com/users/gautamdivgi/gists{/gist_id}","starred_url":"https://api.github.com/users/gautamdivgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gautamdivgi/subscriptions","organizations_url":"https://api.github.com/users/gautamdivgi/orgs","repos_url":"https://api.github.com/users/gautamdivgi/repos","events_url":"https://api.github.com/users/gautamdivgi/events{/privacy}","received_events_url":"https://api.github.com/users/gautamdivgi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-03T12:24:03Z","updated_at":"2017-03-03T12:24:03Z","closed_at":null,"body":"This seems to be a minor documentation bug & an easy fix\r\n\r\nThe scipy.optimize.fsolve accepts a jacobian in the fprime argument\r\n\r\n`scipy.optimize.fsolve(func, x0, args=(), fprime=None, full_output=0, col_deriv=0, xtol=1.49012e-08, maxfev=0, band=None, epsfcn=None, factor=100, diag=None)\r\n`\r\nfprime is defined as\r\n`   fprime : callable(x), optional\r\n        A function to compute the Jacobian of `func` with derivatives\r\n        across the rows. By default, the Jacobian will be estimated.\r\n`\r\nI believe it should really be\r\n`   fprime : callable(x, *args), optional\r\n        A function to compute the Jacobian of `func` with derivatives\r\n        across the rows. By default, the Jacobian will be estimated.\r\n`\r\nThe args from fsolve are passed down to the jacobian. This can be confirmed from the code in scipy/optimize/minpack.py, _root_hybr (code snippet below)\r\n\r\n`   Dfun = jac\r\n    if Dfun is None:\r\n        if band is None:\r\n            ml, mu = -10, -10\r\n        else:\r\n            ml, mu = band[:2]\r\n        if maxfev == 0:\r\n            maxfev = 200 * (n + 1)\r\n        retval = _minpack._hybrd(func, x0, args, 1, xtol, maxfev,\r\n                                 ml, mu, epsfcn, factor, diag)\r\n    else:\r\n        **_check_func('fsolve', 'fprime', Dfun, x0, args, n, (n, n))**\r\n`"}}
{"actor":{"display_login":"gautamdivgi"}}