{"id":20676567,"url":"https://github.com/calebowens/gaussian-elimination","last_synced_at":"2025-03-10T18:46:49.167Z","repository":{"id":129716704,"uuid":"496307463","full_name":"calebowens/Gaussian-Elimination","owner":"calebowens","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-26T17:20:01.000Z","size":79,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T14:55:53.493Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/calebowens.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":"2022-05-25T16:22:35.000Z","updated_at":"2022-09-08T16:51:04.000Z","dependencies_parsed_at":"2023-03-26T00:34:04.046Z","dependency_job_id":null,"html_url":"https://github.com/calebowens/Gaussian-Elimination","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebowens%2FGaussian-Elimination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebowens%2FGaussian-Elimination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebowens%2FGaussian-Elimination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebowens%2FGaussian-Elimination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calebowens","download_url":"https://codeload.github.com/calebowens/Gaussian-Elimination/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242906381,"owners_count":20204825,"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":[],"created_at":"2024-11-16T21:13:01.461Z","updated_at":"2025-03-10T18:46:49.160Z","avatar_url":"https://github.com/calebowens.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gaussian Elimination\nThis simple library facilitates the solving of simultaneous equations and finding the\ninverse of matrices via Gaussian Elimination.\n\nDocs: [View Docs](https://calebowens.github.io/Gaussian-Elimination/)\n\n## Usage\n\n### Simultaneous Equations\n\nCreate a Tableau to represent this set of equations\n\n![equations](https://i.imgur.com/uS3ujTa.png[/img)\n\n```ts\nimport { Tableau } from './main'\n\nconst tableau = Tableau.from([\n  [[ 2 ,  1 , -1 ], [ 8 ]],\n  [[-3 , -1 ,  2 ], [-11]],\n  [[-2 ,  1 ,  2 ], [-3 ]],\n])\n```\n\nThen to solve the equations\n\n```ts\ntableau.solve() // Returns [[2, 3, -1]]\n```\n\nAfter solving, to get just the first elements of all right-hand side of the tableau, you can use\n\n```ts\ntableau.getLHSFirsts() // Returns [2, 3, -1]\n```\n\n### Matrix Inversion\n\nFinding the inverse the above LHS\n\n```ts\nimport { Tableau } from './main'\n\nconst tableau = Tableau.from([\n  [[ 2 ,  1 , -1 ], [ 1 , 0 , 0 ]],\n  [[-3 , -1 ,  2 ], [ 0 , 1 , 0 ]],\n  [[-2 ,  1 ,  2 ], [ 0 , 0 , 1 ]],\n])\n\ntableau.solve() // Returns [ [ 4, 3, -1 ], [-2, -2, 1 ], [ 5, 4, -1 ] ]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalebowens%2Fgaussian-elimination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalebowens%2Fgaussian-elimination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalebowens%2Fgaussian-elimination/lists"}