{"action":"created","comment":{"url":"https://api.github.com/repos/dealii/dealii/pulls/comments/30053521","id":30053521,"diff_hunk":"@@ -511,6 +511,111 @@ class QTelles: public Quadrature<dim>\n \n /*@}*/\n \n+/**\n+* Gauss-Chebyshev quadrature rules integrate the weighted product\n+* $\\int_{-1}^1 f(x) w(x) dx$ with weight given by:\n+* $w(x) = 1/\\sqrt{1-x^2}$. The nodes and weights are known analytically,\n+* and are exact for monomials up to the order $2n-1$, where $n$ is the number\n+* of quadrature points.\n+* Here we rescale the quadrature formula so that it is defined on t\n+* he interval [0,1] instead of [-1,1]. So the quadrature formulas inte\n+* grate exactly the integral $\\int_0^1 f(x) w(x) dx$ with the weight:\n+* $w(x) = 1/sqrt{x(1-x)}$.\n+* For details see:\n+* M. Abramowitz & I.A. Stegun: Handbook of Mathematical Functions, par. 25.4.38\n+*\n+* @author Giuseppe Pitton, Luca Heltai 2015\n+**/\n+template <int dim>\n+class QGaussChebyshev : public Quadrature<dim>\n+{\n+public:\n+  //Generate a formula with <tt>n</tt> quadrature points\n+  QGaussChebyshev(const unsigned int n);\n+\n+protected:\n+  // Sets the points of the quadrature formula.\n+  std::vector<double>\n+  set_quadrature_points(const unsigned int n) const;\n+\n+  // Sets the weights of the quadrature formula.\n+  std::vector<double>\n+  set_quadrature_weights(const unsigned int n) const;\n+\n+};\n+\n+\n+/**\n+* Gauss-Radau-Chebyshev quadrature rules integrate the weighted product\n+* $\\int_{-1}^1 f(x) w(x) dx$ with weight given by:\n+* $w(x) = 1/\\sqrt{1-x^2}$ with the additional constraint that a quadrature point\n+* lies at one of the two extrema of the interval.\n+* The nodes and weights are known analytically,\n+* and are exact for monomials up to the order $2n-2$, where $n$ is the number\n+* of quadrature points.\n+* Here we rescale the quadrature formula so that it is defined on t\n+* he interval [0,1] instead of [-1,1]. So the quadrature formulas inte\n+* grate exactly the integral $\\int_0^1 f(x) w(x) dx$ with the weight:\n+* $w(x) = 1/sqrt{x(1-x)}$. By default the quadrature is constructed with the\n+* left endpoint as quadrature node, but the quadrature node can be imposed at the\n+* right endpoint through the variable ep that can assume the values left or right.\n+*\n+* @author Giuseppe Pitton, Luca Heltai 2015\n+**/\n+template <int dim>\n+class QGaussRadauChebyshev : public Quadrature<dim>\n+{\n+public:\n+  enum EndPoint { left,right };\n+  EndPoint ep;","path":"include/deal.II/base/quadrature_lib.h","position":60,"original_position":60,"commit_id":"2b8f82f061f17838da0e0b7564c30b8a7cf53189","original_commit_id":"2b8f82f061f17838da0e0b7564c30b8a7cf53189","user":{"login":"bangerth","id":7504421,"avatar_url":"https://avatars.githubusercontent.com/u/7504421?v=3","gravatar_id":"","url":"https://api.github.com/users/bangerth","html_url":"https://github.com/bangerth","followers_url":"https://api.github.com/users/bangerth/followers","following_url":"https://api.github.com/users/bangerth/following{/other_user}","gists_url":"https://api.github.com/users/bangerth/gists{/gist_id}","starred_url":"https://api.github.com/users/bangerth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bangerth/subscriptions","organizations_url":"https://api.github.com/users/bangerth/orgs","repos_url":"https://api.github.com/users/bangerth/repos","events_url":"https://api.github.com/users/bangerth/events{/privacy}","received_events_url":"https://api.github.com/users/bangerth/received_events","type":"User","site_admin":false},"body":"Document the enum and make the variable `ep` private and `const`.","created_at":"2015-05-11T16:09:40Z","updated_at":"2015-05-11T16:09:40Z","html_url":"https://github.com/dealii/dealii/pull/924#discussion_r30053521","pull_request_url":"https://api.github.com/repos/dealii/dealii/pulls/924","_links":{"self":{"href":"https://api.github.com/repos/dealii/dealii/pulls/comments/30053521"},"html":{"href":"https://github.com/dealii/dealii/pull/924#discussion_r30053521"},"pull_request":{"href":"https://api.github.com/repos/dealii/dealii/pulls/924"}}},"pull_request":{"url":"https://api.github.com/repos/dealii/dealii/pulls/924","id":35141340,"html_url":"https://github.com/dealii/dealii/pull/924","diff_url":"https://github.com/dealii/dealii/pull/924.diff","patch_url":"https://github.com/dealii/dealii/pull/924.patch","issue_url":"https://api.github.com/repos/dealii/dealii/issues/924","number":924,"state":"open","locked":false,"title":"Added Chebyshev quadrature rules.","user":{"login":"gpitton","id":9949324,"avatar_url":"https://avatars.githubusercontent.com/u/9949324?v=3","gravatar_id":"","url":"https://api.github.com/users/gpitton","html_url":"https://github.com/gpitton","followers_url":"https://api.github.com/users/gpitton/followers","following_url":"https://api.github.com/users/gpitton/following{/other_user}","gists_url":"https://api.github.com/users/gpitton/gists{/gist_id}","starred_url":"https://api.github.com/users/gpitton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpitton/subscriptions","organizations_url":"https://api.github.com/users/gpitton/orgs","repos_url":"https://api.github.com/users/gpitton/repos","events_url":"https://api.github.com/users/gpitton/events{/privacy}","received_events_url":"https://api.github.com/users/gpitton/received_events","type":"User","site_admin":false},"body":"Three new quadrature rules:\r\n * Gauss-Chebyshev (class `QGaussChebyshev`)\r\n * Gauss-Radau-Chebyshev (class `QGaussRadauChebyshev`)\r\n * Gauss-Lobatto-Chebyshev (class `QGaussLobattoChebyshev`)\r\n\r\nThese quadrature formulas are useful in evaluating numerically weighted integrals in the form:\r\n\r\n```\r\n  _               \r\n /  1  f(x) g(x)  \r\n |    ----------dx.\r\n_/  0   ________  \r\n      |/x(1 - x)   \r\n```","created_at":"2015-05-11T15:56:56Z","updated_at":"2015-05-11T16:09:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70f76ee36d5eed24c2248bff6c1c3b3790165464","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dealii/dealii/pulls/924/commits","review_comments_url":"https://api.github.com/repos/dealii/dealii/pulls/924/comments","review_comment_url":"https://api.github.com/repos/dealii/dealii/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dealii/dealii/issues/924/comments","statuses_url":"https://api.github.com/repos/dealii/dealii/statuses/2b8f82f061f17838da0e0b7564c30b8a7cf53189","head":{"label":"gpitton:q_chebyshev","ref":"q_chebyshev","sha":"2b8f82f061f17838da0e0b7564c30b8a7cf53189","user":{"login":"gpitton","id":9949324,"avatar_url":"https://avatars.githubusercontent.com/u/9949324?v=3","gravatar_id":"","url":"https://api.github.com/users/gpitton","html_url":"https://github.com/gpitton","followers_url":"https://api.github.com/users/gpitton/followers","following_url":"https://api.github.com/users/gpitton/following{/other_user}","gists_url":"https://api.github.com/users/gpitton/gists{/gist_id}","starred_url":"https://api.github.com/users/gpitton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpitton/subscriptions","organizations_url":"https://api.github.com/users/gpitton/orgs","repos_url":"https://api.github.com/users/gpitton/repos","events_url":"https://api.github.com/users/gpitton/events{/privacy}","received_events_url":"https://api.github.com/users/gpitton/received_events","type":"User","site_admin":false},"repo":{"id":34261742,"name":"dealii","full_name":"gpitton/dealii","owner":{"login":"gpitton","id":9949324,"avatar_url":"https://avatars.githubusercontent.com/u/9949324?v=3","gravatar_id":"","url":"https://api.github.com/users/gpitton","html_url":"https://github.com/gpitton","followers_url":"https://api.github.com/users/gpitton/followers","following_url":"https://api.github.com/users/gpitton/following{/other_user}","gists_url":"https://api.github.com/users/gpitton/gists{/gist_id}","starred_url":"https://api.github.com/users/gpitton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpitton/subscriptions","organizations_url":"https://api.github.com/users/gpitton/orgs","repos_url":"https://api.github.com/users/gpitton/repos","events_url":"https://api.github.com/users/gpitton/events{/privacy}","received_events_url":"https://api.github.com/users/gpitton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gpitton/dealii","description":"The development repository for the deal.II finite element library.","fork":true,"url":"https://api.github.com/repos/gpitton/dealii","forks_url":"https://api.github.com/repos/gpitton/dealii/forks","keys_url":"https://api.github.com/repos/gpitton/dealii/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gpitton/dealii/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gpitton/dealii/teams","hooks_url":"https://api.github.com/repos/gpitton/dealii/hooks","issue_events_url":"https://api.github.com/repos/gpitton/dealii/issues/events{/number}","events_url":"https://api.github.com/repos/gpitton/dealii/events","assignees_url":"https://api.github.com/repos/gpitton/dealii/assignees{/user}","branches_url":"https://api.github.com/repos/gpitton/dealii/branches{/branch}","tags_url":"https://api.github.com/repos/gpitton/dealii/tags","blobs_url":"https://api.github.com/repos/gpitton/dealii/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gpitton/dealii/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gpitton/dealii/git/refs{/sha}","trees_url":"https://api.github.com/repos/gpitton/dealii/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gpitton/dealii/statuses/{sha}","languages_url":"https://api.github.com/repos/gpitton/dealii/languages","stargazers_url":"https://api.github.com/repos/gpitton/dealii/stargazers","contributors_url":"https://api.github.com/repos/gpitton/dealii/contributors","subscribers_url":"https://api.github.com/repos/gpitton/dealii/subscribers","subscription_url":"https://api.github.com/repos/gpitton/dealii/subscription","commits_url":"https://api.github.com/repos/gpitton/dealii/commits{/sha}","git_commits_url":"https://api.github.com/repos/gpitton/dealii/git/commits{/sha}","comments_url":"https://api.github.com/repos/gpitton/dealii/comments{/number}","issue_comment_url":"https://api.github.com/repos/gpitton/dealii/issues/comments{/number}","contents_url":"https://api.github.com/repos/gpitton/dealii/contents/{+path}","compare_url":"https://api.github.com/repos/gpitton/dealii/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gpitton/dealii/merges","archive_url":"https://api.github.com/repos/gpitton/dealii/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gpitton/dealii/downloads","issues_url":"https://api.github.com/repos/gpitton/dealii/issues{/number}","pulls_url":"https://api.github.com/repos/gpitton/dealii/pulls{/number}","milestones_url":"https://api.github.com/repos/gpitton/dealii/milestones{/number}","notifications_url":"https://api.github.com/repos/gpitton/dealii/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gpitton/dealii/labels{/name}","releases_url":"https://api.github.com/repos/gpitton/dealii/releases{/id}","created_at":"2015-04-20T13:20:59Z","updated_at":"2015-04-20T13:22:04Z","pushed_at":"2015-05-11T15:50:24Z","git_url":"git://github.com/gpitton/dealii.git","ssh_url":"git@github.com:gpitton/dealii.git","clone_url":"https://github.com/gpitton/dealii.git","svn_url":"https://github.com/gpitton/dealii","homepage":"http://www.dealii.org/","size":112236,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dealii:master","ref":"master","sha":"2bde219143a9e04d71d35e9aeb61a002026360f7","user":{"login":"dealii","id":7506070,"avatar_url":"https://avatars.githubusercontent.com/u/7506070?v=3","gravatar_id":"","url":"https://api.github.com/users/dealii","html_url":"https://github.com/dealii","followers_url":"https://api.github.com/users/dealii/followers","following_url":"https://api.github.com/users/dealii/following{/other_user}","gists_url":"https://api.github.com/users/dealii/gists{/gist_id}","starred_url":"https://api.github.com/users/dealii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dealii/subscriptions","organizations_url":"https://api.github.com/users/dealii/orgs","repos_url":"https://api.github.com/users/dealii/repos","events_url":"https://api.github.com/users/dealii/events{/privacy}","received_events_url":"https://api.github.com/users/dealii/received_events","type":"Organization","site_admin":false},"repo":{"id":21943980,"name":"dealii","full_name":"dealii/dealii","owner":{"login":"dealii","id":7506070,"avatar_url":"https://avatars.githubusercontent.com/u/7506070?v=3","gravatar_id":"","url":"https://api.github.com/users/dealii","html_url":"https://github.com/dealii","followers_url":"https://api.github.com/users/dealii/followers","following_url":"https://api.github.com/users/dealii/following{/other_user}","gists_url":"https://api.github.com/users/dealii/gists{/gist_id}","starred_url":"https://api.github.com/users/dealii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dealii/subscriptions","organizations_url":"https://api.github.com/users/dealii/orgs","repos_url":"https://api.github.com/users/dealii/repos","events_url":"https://api.github.com/users/dealii/events{/privacy}","received_events_url":"https://api.github.com/users/dealii/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dealii/dealii","description":"The development repository for the deal.II finite element library.","fork":false,"url":"https://api.github.com/repos/dealii/dealii","forks_url":"https://api.github.com/repos/dealii/dealii/forks","keys_url":"https://api.github.com/repos/dealii/dealii/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dealii/dealii/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dealii/dealii/teams","hooks_url":"https://api.github.com/repos/dealii/dealii/hooks","issue_events_url":"https://api.github.com/repos/dealii/dealii/issues/events{/number}","events_url":"https://api.github.com/repos/dealii/dealii/events","assignees_url":"https://api.github.com/repos/dealii/dealii/assignees{/user}","branches_url":"https://api.github.com/repos/dealii/dealii/branches{/branch}","tags_url":"https://api.github.com/repos/dealii/dealii/tags","blobs_url":"https://api.github.com/repos/dealii/dealii/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dealii/dealii/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dealii/dealii/git/refs{/sha}","trees_url":"https://api.github.com/repos/dealii/dealii/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dealii/dealii/statuses/{sha}","languages_url":"https://api.github.com/repos/dealii/dealii/languages","stargazers_url":"https://api.github.com/repos/dealii/dealii/stargazers","contributors_url":"https://api.github.com/repos/dealii/dealii/contributors","subscribers_url":"https://api.github.com/repos/dealii/dealii/subscribers","subscription_url":"https://api.github.com/repos/dealii/dealii/subscription","commits_url":"https://api.github.com/repos/dealii/dealii/commits{/sha}","git_commits_url":"https://api.github.com/repos/dealii/dealii/git/commits{/sha}","comments_url":"https://api.github.com/repos/dealii/dealii/comments{/number}","issue_comment_url":"https://api.github.com/repos/dealii/dealii/issues/comments{/number}","contents_url":"https://api.github.com/repos/dealii/dealii/contents/{+path}","compare_url":"https://api.github.com/repos/dealii/dealii/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dealii/dealii/merges","archive_url":"https://api.github.com/repos/dealii/dealii/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dealii/dealii/downloads","issues_url":"https://api.github.com/repos/dealii/dealii/issues{/number}","pulls_url":"https://api.github.com/repos/dealii/dealii/pulls{/number}","milestones_url":"https://api.github.com/repos/dealii/dealii/milestones{/number}","notifications_url":"https://api.github.com/repos/dealii/dealii/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dealii/dealii/labels{/name}","releases_url":"https://api.github.com/repos/dealii/dealii/releases{/id}","created_at":"2014-07-17T14:00:26Z","updated_at":"2015-05-08T13:24:21Z","pushed_at":"2015-05-11T15:56:56Z","git_url":"git://github.com/dealii/dealii.git","ssh_url":"git@github.com:dealii/dealii.git","clone_url":"https://github.com/dealii/dealii.git","svn_url":"https://github.com/dealii/dealii","homepage":"http://www.dealii.org/","size":147760,"stargazers_count":55,"watchers_count":55,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"open_issues_count":83,"forks":75,"open_issues":83,"watchers":55,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dealii/dealii/pulls/924"},"html":{"href":"https://github.com/dealii/dealii/pull/924"},"issue":{"href":"https://api.github.com/repos/dealii/dealii/issues/924"},"comments":{"href":"https://api.github.com/repos/dealii/dealii/issues/924/comments"},"review_comments":{"href":"https://api.github.com/repos/dealii/dealii/pulls/924/comments"},"review_comment":{"href":"https://api.github.com/repos/dealii/dealii/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dealii/dealii/pulls/924/commits"},"statuses":{"href":"https://api.github.com/repos/dealii/dealii/statuses/2b8f82f061f17838da0e0b7564c30b8a7cf53189"}}}}