{"action":"opened","issue":{"url":"https://api.github.com/repos/alashworth/test-issue-import/issues/181","repository_url":"https://api.github.com/repos/alashworth/test-issue-import","labels_url":"https://api.github.com/repos/alashworth/test-issue-import/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/alashworth/test-issue-import/issues/181/comments","events_url":"https://api.github.com/repos/alashworth/test-issue-import/issues/181/events","html_url":"https://github.com/alashworth/test-issue-import/issues/181","id":419892529,"node_id":"MDU6SXNzdWU0MTk4OTI1Mjk=","number":181,"title":"add one-dimensional integator","user":{"login":"alashworth","id":3664221,"node_id":"MDQ6VXNlcjM2NjQyMjE=","avatar_url":"https://avatars3.githubusercontent.com/u/3664221?v=4","gravatar_id":"","url":"https://api.github.com/users/alashworth","html_url":"https://github.com/alashworth","followers_url":"https://api.github.com/users/alashworth/followers","following_url":"https://api.github.com/users/alashworth/following{/other_user}","gists_url":"https://api.github.com/users/alashworth/gists{/gist_id}","starred_url":"https://api.github.com/users/alashworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alashworth/subscriptions","organizations_url":"https://api.github.com/users/alashworth/orgs","repos_url":"https://api.github.com/users/alashworth/repos","events_url":"https://api.github.com/users/alashworth/events{/privacy}","received_events_url":"https://api.github.com/users/alashworth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-03-12T09:52:05Z","updated_at":"2019-03-12T09:52:05Z","closed_at":null,"author_association":"OWNER","body":"<a href=\"https://github.com/bob-carpenter\"><img src=\"https://avatars1.githubusercontent.com/u/3383807?v=4\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [bob-carpenter](https://github.com/bob-carpenter)**\n_Wednesday Feb 07, 2018 at 21:47 GMT_\n_Originally opened as https://github.com/stan-dev/stan/issues/2466_\n\n----\n\n#### Summary:\r\n\r\nExpose one dimensional integrator function from the math library to the language.\r\n\r\n```\r\n/**\r\n * Return definite integral of specified function between lower bound and upper\r\n * bound, with specified absolute and relative tolerances.\r\n * @param f one-dimensional function to integrate\r\n * @param lb lower bound of integration\r\n * @param ub upper bound of integration\r\n * @param theta vector of parameters\r\n * @param atol absolute tolerance of solution\r\n * @param rtol relative tolerance of solution\r\n * @return integral of f between lb and ub\r\n * @throw if lb, ub, atol, rtol are not finite or if atol and rtol are not positive or if lb > ub\r\n */\r\nreal integrate_definite(fun(real -> real) f, real lb, real ub, vector theta, real atol, real rtol);\r\n```\r\n\r\nThe function `f` must have the signature\r\n\r\n```\r\nreal f(real y, vector theta)\r\n```\r\n\r\nand what gets returned is\r\n\r\n```\r\nINTEGRAL_lb^ub  f(y, theta) d.y\r\n```\r\n\r\nSee:  https://github.com/stan-dev/math/pull/566\r\n\r\n# Description\r\n\r\nThis will require a special expression as it takes a function as input.\r\n#### Current Version:\r\nv2.17.1\r\n\n"}}
{"actor":{"display_login":"alashworth"}}