{"id":16650046,"url":"https://github.com/rdch106/linearizator","last_synced_at":"2025-05-12T21:09:55.915Z","repository":{"id":62576164,"uuid":"92726628","full_name":"RDCH106/linearizator","owner":"RDCH106","description":"Small library to solve linearization problems","archived":false,"fork":false,"pushed_at":"2017-11-22T19:12:26.000Z","size":20,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-12T21:09:53.672Z","etag":null,"topics":["linearization","math","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RDCH106.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}},"created_at":"2017-05-29T09:46:11.000Z","updated_at":"2017-05-30T10:43:36.000Z","dependencies_parsed_at":"2022-11-03T19:04:12.426Z","dependency_job_id":null,"html_url":"https://github.com/RDCH106/linearizator","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RDCH106%2Flinearizator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RDCH106%2Flinearizator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RDCH106%2Flinearizator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RDCH106%2Flinearizator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RDCH106","download_url":"https://codeload.github.com/RDCH106/linearizator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253823453,"owners_count":21969848,"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":["linearization","math","python"],"created_at":"2024-10-12T09:15:06.670Z","updated_at":"2025-05-12T21:09:55.862Z","avatar_url":"https://github.com/RDCH106.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linearizator\n\n[![PyPI](https://img.shields.io/pypi/v/linearizator.svg)](https://pypi.python.org/pypi/linearizator)\n[![PyPI](https://img.shields.io/pypi/pyversions/linearizator.svg)](https://pypi.python.org/pypi/linearizator)\n[![PyPI](https://img.shields.io/pypi/l/linearizator.svg)](https://github.com/RDCH106/linearizator/blob/master/LICENSE)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/442feb0ba62c44c7900e33e773cde6f8)](https://www.codacy.com/app/RDCH106/linearizator?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=RDCH106/linearizator\u0026utm_campaign=badger)\n[![Build Status](https://travis-ci.org/RDCH106/linearizator.svg?branch=master)](https://travis-ci.org/RDCH106/linearizator)\n\nSmall library to solve linearization problems.\n\nLinearizator is compatible with Python 2 and Python 3.\n\n### What can I do with Linearizator?\n\n- Solve equation of line using 2 points\n- Use solved equation to linearize values\n\n### Installation\n\nYou can install or upgrade linearizator with:\n\n`$ pip install linearizator --upgrade`\n\nOr you can install from source with:\n\n```\n$ git clone https://github.com/RDCH106/linearizator.git --recursive\n$ cd linearizator\n$ python setup.py install\n```\n\n### Quick example\n\n```python\nfrom linearizator import linearizator\n\n# Initialize linearizator object\nlin = linearizator.Linearizator(x1=6.4, y1=20, x2=16.8, y2=85, unknown=\"y\")\n\n# Linearize\nlin.linearize()\n\n# Show equation of line\nprint(lin.pretty_equation())\n\n# Calculate the value of a point\nprint(lin.calculate(6.4))\n\n# Generate inverse linearization\nlin.inverse()\n\n# Show equation of line\nprint(lin.pretty_equation())\n\n# Calculate the value of a point\nprint(lin.calculate(20))\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdch106%2Flinearizator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdch106%2Flinearizator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdch106%2Flinearizator/lists"}