{"id":23243112,"url":"https://github.com/alz-11/ftoc","last_synced_at":"2026-05-08T06:42:00.880Z","repository":{"id":268593696,"uuid":"888700008","full_name":"ALZ-11/FtoC","owner":"ALZ-11","description":"Fahrenheit to Celsius conversion analysis, comparing accurate and approximate methods with visualizations and error analysis.","archived":false,"fork":false,"pushed_at":"2024-12-17T17:53:45.000Z","size":456,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T23:17:37.353Z","etag":null,"topics":["approximation","celsius","conversion","data-visualization","error-analysis","fahrenheit","fahrenheit-to-celsius","jupyter","jupyter-notebook","matplotlib","numpy","python","python-3","python3"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ALZ-11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-11-14T21:14:27.000Z","updated_at":"2024-12-17T17:53:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"c752e1cf-557f-4597-bd82-6bd7854ed29e","html_url":"https://github.com/ALZ-11/FtoC","commit_stats":null,"previous_names":["alz-11/ftoc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALZ-11%2FFtoC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALZ-11%2FFtoC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALZ-11%2FFtoC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALZ-11%2FFtoC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ALZ-11","download_url":"https://codeload.github.com/ALZ-11/FtoC/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411231,"owners_count":20934654,"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","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","celsius","conversion","data-visualization","error-analysis","fahrenheit","fahrenheit-to-celsius","jupyter","jupyter-notebook","matplotlib","numpy","python","python-3","python3"],"created_at":"2024-12-19T06:15:07.797Z","updated_at":"2025-10-19T04:45:33.488Z","avatar_url":"https://github.com/ALZ-11.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fahrenheit to Celsius Conversion: Accurate vs. Approximate\n\nWelcome to the **Fahrenheit to Celsius Conversion** mini-project. In this repo, we compare two methods for converting Fahrenheit to Celsius:\n1. **The Accurate Formula**: $`C = \\frac{5}{9} \\times (F - 32) `$\n2. **The Approximate Formula**: $`C \\approx \\frac{1}{2} \\times (F - 32) `$\n\nWe dive into how the approximation performs compared to the accurate conversion, and how the error behaves at specific Fahrenheit values.\n\n## Key Features\n\n- **Accurate vs. Approximate Conversion**: Understand the difference and where the approximation works best.\n- **Error Analysis**: Visualize the error pattern between both methods.\n- **Insight**: Discover the unexpected regularity in the error increments.\n\n## The Math (Just the Essentials)\n\n### Accurate Formula:\nThe accurate conversion from Fahrenheit to Celsius is:\n$`\nC = \\frac{5}{9} \\times (F - 32)\n`$\n\n### Approximate Formula:\nA simplified method is:\n$`\nC \\approx \\frac{1}{2} \\times (F - 32)\n`$\n\n### Absolute Error:\nWe calculate the absolute error between both methods:\n$`\n\\text{Absolute Error} = \\left| \\frac{5}{9} (F - 32) - \\frac{1}{2} (F - 32) \\right|\n`$\n\nThis error increases predictably at **specific Fahrenheit values**, especially every **$`36°F `$** from the focal point of **$`32°F`$**. For example, at **$`68°F`$**, **$`104°F`$**, and so on, the error increments in **$`2°C`$ steps**.\n\n## Interactive Graphs\n\n- Graphs comparing the results of both conversion methods.\n- Error graphs highlighting key points where the error increases by **$`2°C`$** every **$`36°F`$** from 32°F.\n\nThese plots give us a visual insight into the regularity of the error and how far apart the two methods diverge.\n\n\n## Fact\n\nThe error increments by **$`2°C`$** at **$`36°F`$ intervals** from the focal point of **$`32°F`$**. This means you can use mental math to make small adjustments to your conversion when approximating the Celsius value.\n\n**Example**:\n- At **$`68°F`$**, add **$`2°C`$**.\n- At **$`104°F`$**, add **$`4°C`$**.\n\n\n## Getting Started\n\n### Prerequisites:\n- **Python 3.x**\n- **Jupyter Notebook** (or any compatible environment)\n- **NumPy**, **Matplotlib** \n\nInstall the dependencies with:\n```bash\npip install numpy matplotlib\n```\n\n### Running the Notebook:\n\n1. Clone the repo:\n   ```bash\n   git clone https://github.com/ALZ-11/FtoC.git\n   ```\n2. Navigate into the directory:\n   ```bash\n   cd FtoC\n   ```\n3. Launch the notebook:\n   ```bash\n   jupyter notebook mainFtoC.ipynb\n   ```\n\nOnce the notebook is open, you'll find a step-by-step walkthrough that includes analysis and visualisations. The visual elements will make it easy to see the mathematical relationships at play.\n\n## How to Contribute\n\nIf you have suggestions or want to improve this project, here's how you can help:\n\n- Fork the repository and submit a pull request! I welcome fixes, enhancements, or new features. \n- Share your own improvements to the visualizations or error analysis for an even better understanding of the conversion process.\n\n---\n\n**Tip**: For a more interactive experience, consider adding your own graphs, analysis, or improving the layout.\n\nFeel free to dive into the notebook and explore all the interesting patterns of Fahrenheit to Celsius conversion!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falz-11%2Fftoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falz-11%2Fftoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falz-11%2Fftoc/lists"}