{"id":16130202,"url":"https://github.com/lambdacasserole/idris-integration","last_synced_at":"2026-02-13T13:01:16.222Z","repository":{"id":75385875,"uuid":"198049655","full_name":"lambdacasserole/idris-integration","owner":"lambdacasserole","description":"Riemann approximation of integrals in Idris.","archived":false,"fork":false,"pushed_at":"2019-07-22T13:32:50.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-08T07:41:32.926Z","etag":null,"topics":["approximation","idris","integration","riemann"],"latest_commit_sha":null,"homepage":null,"language":"Idris","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lambdacasserole.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-21T11:45:13.000Z","updated_at":"2019-07-22T13:32:51.000Z","dependencies_parsed_at":"2023-06-06T08:45:14.758Z","dependency_job_id":null,"html_url":"https://github.com/lambdacasserole/idris-integration","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lambdacasserole/idris-integration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdacasserole%2Fidris-integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdacasserole%2Fidris-integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdacasserole%2Fidris-integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdacasserole%2Fidris-integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lambdacasserole","download_url":"https://codeload.github.com/lambdacasserole/idris-integration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdacasserole%2Fidris-integration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29407015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["approximation","idris","integration","riemann"],"created_at":"2024-10-09T22:14:58.175Z","updated_at":"2026-02-13T13:01:15.953Z","avatar_url":"https://github.com/lambdacasserole.png","language":"Idris","readme":"# Riemann Integral Approximation in Idris\nRiemann approximation of integrals in Idris.\n\n## Installation\nThis is just a standard Idris package file. You can find instructions for installing it [in the official documentation](http://docs.idris-lang.org/en/latest/tutorial/packages.html). Briefly, however, this'll do it:\n\n```bash\nidris --build integration.ipkg\nidris --install integration.ipkg\nidris --clean integration.ipkg\n````\n\n## Usage\nThe API here is currently very minimal. You can compute the left or right Riemann sums of a function, or apply the trapezoidal rule to approximate its integral.\n\n```idris\n-- scratch.idr\n\nimport Integration.Riemann\n\ny_equals_x_squared : Double -\u003e Double\ny_equals_x_squared x = x * x\n```\n\nNow, load `scratch.idr` by invoking `idris scratch.idr` and try the following:\n\n```idris\n\u003e :module Integration.Riemann\n\u003e rrs y_equals_x_squared 1 0 5\n55.0 : Double\n\u003e lrs y_equals_x_squared 1 0 5\n30.0 : Double\n\u003e trapz y_equals_x_squared 1 0 5\n42.5 : Double\n```\n\n## Future Work\n* I'd like to add the midpoint rule in here at some point.\n* It would be nice to define the trapezoidal rule separately and then prove that it is equivalent to the average of the right and left Riemann sums. Unfortunately I'm currently not sure where to start with this, whether or not the definitions in this library are amenable to this, or whether it is even possible right now.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdacasserole%2Fidris-integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambdacasserole%2Fidris-integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdacasserole%2Fidris-integration/lists"}