{"id":29085128,"url":"https://github.com/radiopotin/computorv1","last_synced_at":"2025-06-27T22:12:15.667Z","repository":{"id":53085908,"uuid":"354040555","full_name":"RadioPotin/computorv1","owner":"RadioPotin","description":"2nd degree equation solver, first experience in functional programming. 42Paris course project","archived":false,"fork":false,"pushed_at":"2022-05-21T11:37:57.000Z","size":4267,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-08T15:03:48.953Z","etag":null,"topics":["42paris","42school","computorv1","functional-programming","ocaml"],"latest_commit_sha":null,"homepage":"https://radiopotin.github.io/computorv1/","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RadioPotin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-02T14:19:12.000Z","updated_at":"2022-12-13T10:12:23.000Z","dependencies_parsed_at":"2022-09-12T12:11:57.318Z","dependency_job_id":null,"html_url":"https://github.com/RadioPotin/computorv1","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/RadioPotin/computorv1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RadioPotin%2Fcomputorv1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RadioPotin%2Fcomputorv1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RadioPotin%2Fcomputorv1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RadioPotin%2Fcomputorv1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RadioPotin","download_url":"https://codeload.github.com/RadioPotin/computorv1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RadioPotin%2Fcomputorv1/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262341625,"owners_count":23296073,"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":["42paris","42school","computorv1","functional-programming","ocaml"],"created_at":"2025-06-27T22:12:06.184Z","updated_at":"2025-06-27T22:12:15.652Z","avatar_url":"https://github.com/RadioPotin.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ComputorV1 [![Actions Status](https://github.com/RadioPotin/computorv1/workflows/build/badge.svg)](https://github.com/RadioPotin/computorv1/actions) [![coverage percentage](https://raw.githubusercontent.com/RadioPotin/computorv1/gh-pages/coverage/badge.svg)](https://RadioPotin.github.io/computorv1/coverage/)\n\n# Building\n```\ndune build @all\n```\ncreates an executable\n```\n_build/default/src/computor.exe\n```\nto which you can feed a polynome to solve.\n\n# Testing\n```\ndune runtest\n```\nThis will run all tests contained in the folder `test`.\n\n# Usage\n\n```\ndune exec -- src/computor.exe \u003cequation\u003e\n```\n\n`\u003cequation\u003e` being a string that defines a polynome of degree inferior or equal to 2.\n\nThe program accepts an equation if and only if there is at least one monome on each sides of an equal sign.\n\n# Examples of accepted forms of monomes\n\nEach of the following accepted monome forms may be combined in a single polynomial expression though separated by `-` and `+` signs.\n\nVariable `a` stands for a coefficient.\n\nVariable `x` stands for a variable names like \"X\", \"YO\" or \"papopi\"\n\nVariable `n` stands for the exponent part of the term.\n\n`a * x^n`\n\n`ax^n`\n\n`a * x`\n\n`ax`\n\n`x^n`\n\n`x`\n\n`a`\n\n##  Running in Docker\n\nThe repo has a Dockerfile with everything necessary for you to just run.\n\n**Building image**\n```shell-session\ndocker build -t \u003cuser\u003e:\u003cimagename\u003e .\n```\n\nMake sure to replace build `name` and `user` accordingly.\n\n**Interactive mode**\n```shell-session\ndocker run --rm -it --entrypoint bash \u003cuser\u003e:\u003cname\u003e\n```\n\n**Running cli inside docker**\nEither:\n1. Wrap commands in `opam exec`\n```shell-session\n$ opam exec -- dune exec -- src/computor.exe\n```\n\n2. `eval $(opam env)` to have all required binaries in your path\n```shell-session\n$ eval $(opam env)\n$ dune exec -- src/computor.exe\n```\n\n### Details [Here](https://radiopotin.github.io/computorv1/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradiopotin%2Fcomputorv1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradiopotin%2Fcomputorv1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradiopotin%2Fcomputorv1/lists"}