{"id":30889000,"url":"https://github.com/codemeapixel/integrata","last_synced_at":"2026-02-13T12:02:58.140Z","repository":{"id":308815723,"uuid":"1034205212","full_name":"CodeMeAPixel/Integrata","owner":"CodeMeAPixel","description":"Modern Fortran toolkit for fast, accurate numerical integration and scientific computing Simpson’s Rule and more, with extensible features planned.","archived":false,"fork":false,"pushed_at":"2025-08-08T04:03:22.000Z","size":1662,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-29T08:38:46.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://codemeapixel.github.io/Integrata/","language":"Fortran","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/CodeMeAPixel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"CodeMeAPixel","ko_fi":"codemeapixel","buy_me_a_coffee":"codemeapixel"}},"created_at":"2025-08-08T02:56:39.000Z","updated_at":"2025-08-08T04:04:49.000Z","dependencies_parsed_at":"2025-08-08T04:32:19.516Z","dependency_job_id":"4227cbe9-2ae5-4ab1-9523-c4ea8685a2c9","html_url":"https://github.com/CodeMeAPixel/Integrata","commit_stats":null,"previous_names":["codemeapixel/integrata"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodeMeAPixel/Integrata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeMeAPixel%2FIntegrata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeMeAPixel%2FIntegrata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeMeAPixel%2FIntegrata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeMeAPixel%2FIntegrata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeMeAPixel","download_url":"https://codeload.github.com/CodeMeAPixel/Integrata/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeMeAPixel%2FIntegrata/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274209749,"owners_count":25241788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-09-08T15:51:23.553Z","updated_at":"2026-02-13T12:02:58.133Z","avatar_url":"https://github.com/CodeMeAPixel.png","language":"Fortran","readme":"\n\n\n# Integrata\n\nA growing Fortran project demonstrating numerical integration using Simpson’s Rule, with plans to expand into a full suite of numerical methods and scientific computing tools.  \n\n\u003e Manual build and run instructions included for quick start.\n\n---\n\n\n## 📂 Project Structure\n\n```text\nIntegrata/\n├── src/\n│   ├── simpson.f90         # Simpson’s Rule integration module\n│   ├── trapezoidal.f90     # Trapezoidal Rule integration module\n│   ├── input_utils.f90     # Input and error handling utilities\n│   ├── menu.f90            # Menu and selection utilities\n│   └── integrata.f90       # Unified interface module\n├── app/\n│   └── main.f90            # Main program using the modules\n├── test/\n│   ├── test_simpson.f90    # Legacy test for Simpson's Rule\n│   └── test_integration.f90 # Comprehensive tests for Simpson's \u0026 Trapezoidal rules\n├── Makefile                # Build and run automation\n└── README.md               # This file\n```\n\n---\n\n## 🛠️ Building and Running\n\n### Prerequisites\n\n- **Fortran compiler:** [gfortran](https://gcc.gnu.org/fortran/) or any Fortran 2008+ compliant compiler.\n\n---\n\n\n### Build and run the main program\n\n```sh\nmake        # builds the main program (main.exe)\nmake run    # builds and runs the main program\n```\n\n\n### Build and run tests\n\n```sh\nmake test   # builds and runs all tests (Simpson's \u0026 Trapezoidal)\nmake test_simpson      # legacy test for Simpson's Rule only\nmake test_integration  # comprehensive tests for both rules\n```\n\n---\n\n### Features\n\n- Modular Fortran codebase: each integration method and utility in its own file\n- Supports Simpson’s Rule and Trapezoidal Rule\n- Choose between sin(x) and cos(x) as test functions\n- Robust, user-friendly input validation (including support for 'pi')\n- Easy build and run with Makefile\n\n---\n\n\n## 🧮 About Simpson’s and Trapezoidal Rule Integration\n\n\nSimpson’s Rule and the Trapezoidal Rule are classic methods for approximating definite integrals. This project demonstrates both, with a modular, extensible Fortran codebase.\n\n\n**Simpson’s Rule:**\n\n∫ₐᵇ f(x) dx ≈ (h/3) [f(a) + 4 Σ_odd f(xᵢ) + 2 Σ_even f(xᵢ) + f(b)]\nwhere h = (b - a) / n, n even.\n\n**Trapezoidal Rule:**\n\n∫ₐᵇ f(x) dx ≈ h/2 [f(a) + 2 Σ f(xᵢ) + f(b)]\nwhere h = (b - a) / n, n ≥ 1.\n\n**Visualization of intervals:**\n\n```text\na  x1  x2  x3  x4  ...  xn-1  b\n|---|---|---|---|-------|---|\n\t ^   ^   ^           ^   \n odd even odd         odd\n```\n\n⚠️ **Notes**\n\n- The number of subintervals n must be even for Simpson’s Rule.\n- The program will stop with a clear error if invalid input is provided.\n\n---\n\n## 🧩 Future plans for Integrata\n\n\n| Feature                     | Status      | Notes                        |\n|-----------------------------|------------|------------------------------|\n| Add other numerical methods | In progress| Trapezoidal, Romberg, etc.   |\n| Support adaptive integration| Planned    | Dynamic subinterval sizing    |\n| GUI frontend                | Idea       | Simple Qt or web UI           |\n| FPM package support         | In progress| For easy building \u0026 testing   |\n\n---\n\n## 📖 Documentation\n\n### Code Structure\n\n- **src/simpson.f90**: Simpson’s Rule implementation (module)\n- **src/trapezoidal.f90**: Trapezoidal Rule implementation (module)\n- **src/input_utils.f90**: Input parsing, validation, and error handling utilities\n- **src/menu.f90**: Menu and selection utilities for user interaction\n- **src/integrata.f90**: Unified interface module, re-exports all integration methods\n- **app/main.f90**: Main program, orchestrates user input, method selection, and output\n- **test/test_simpson.f90**: Legacy test for Simpson’s Rule\n- **test/test_integration.f90**: Comprehensive tests for Simpson’s \u0026 Trapezoidal rules\n\n### Usage\n\nRun `make` to build, `make run` to build and run, and `make test` to run tests. The program will prompt for:\n- Lower and upper bounds (accepts numbers or 'pi')\n- Number of intervals (n)\n- Function to integrate (sin(x) or cos(x))\n- Integration method (Simpson’s or Trapezoidal)\n\n### Extending Integrata\n\n- To add a new integration method, create a new module in `src/` and add it to `integrata.f90`.\n- To add more test functions, define them in `main.f90` and update the menu logic.\n- For more advanced input or CLI features, extend `input_utils.f90` and `menu.f90`.\n\n---\n\n## 🤝 Contributing\n\nContributions welcome! Feel free to open issues or pull requests.\n\n© 2025 CodeMeAPixel — MIT License\n","funding_links":["https://github.com/sponsors/CodeMeAPixel","https://ko-fi.com/codemeapixel","https://buymeacoffee.com/codemeapixel"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemeapixel%2Fintegrata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemeapixel%2Fintegrata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemeapixel%2Fintegrata/lists"}