{"id":17930814,"url":"https://github.com/lovasoa/lagrange-cpp","last_synced_at":"2025-06-28T17:37:06.544Z","repository":{"id":45710275,"uuid":"69457202","full_name":"lovasoa/lagrange-cpp","owner":"lovasoa","description":"Lagrange interpolation polynomials in C++11","archived":false,"fork":false,"pushed_at":"2018-03-01T07:24:41.000Z","size":7,"stargazers_count":10,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T21:01:38.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lovasoa.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":"2016-09-28T11:37:06.000Z","updated_at":"2024-12-10T08:40:28.000Z","dependencies_parsed_at":"2022-09-17T04:31:18.763Z","dependency_job_id":null,"html_url":"https://github.com/lovasoa/lagrange-cpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lovasoa/lagrange-cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Flagrange-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Flagrange-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Flagrange-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Flagrange-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovasoa","download_url":"https://codeload.github.com/lovasoa/lagrange-cpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Flagrange-cpp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262470770,"owners_count":23316552,"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-10-28T21:18:04.711Z","updated_at":"2025-06-28T17:37:06.518Z","avatar_url":"https://github.com/lovasoa.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lagrange-cpp\nLagrange interpolation polynomials in C++11\n\n## Usage\nLet's create a polynomial function that passes through the points (0,0) (2,4) (10,100).\n\n#### Compile the files\n```sh\n$ make\n```\n\n#### Create a file that contains the point coordinates\nUne point per line. X and Y coordinates are separated by a space.\n```sh\n$ cat \u003e points.txt\n0 0 \n2 4\n10 100\n```\n\n#### Generate the polynomial coefficients\nLet's write the coefficients to a file named `polynom.txt`.\n```sh\n$ ./coeffs \u003c points.txt \u003e polynomial.txt\n$ cat polynomial.txt \n0\n0\n1\n```\n\nWe can see that the generated polynomial function is `f : x -\u003e 0 + 0*x + 1*x^2`. This is the square function, as expected.\n\n#### Evaluate the resulting function\nLet's evaluate the function between 0 and 10.\n```sh\n$ seq 0 10 | ./poly_exec polynomial.txt \n0\n1\n4\n9\n16\n25\n36\n49\n64\n81\n100\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasoa%2Flagrange-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovasoa%2Flagrange-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasoa%2Flagrange-cpp/lists"}