{"id":20384261,"url":"https://github.com/scenent/gp","last_synced_at":"2025-07-27T20:07:47.246Z","repository":{"id":254302887,"uuid":"846087865","full_name":"scenent/gp","owner":"scenent","description":"graph parser for C++.","archived":false,"fork":false,"pushed_at":"2024-08-22T14:21:09.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-04T23:12:32.859Z","etag":null,"topics":["cpp","graph","math","parser"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scenent.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":"2024-08-22T14:02:30.000Z","updated_at":"2024-08-22T14:22:07.000Z","dependencies_parsed_at":"2024-08-22T17:41:18.959Z","dependency_job_id":null,"html_url":"https://github.com/scenent/gp","commit_stats":null,"previous_names":["scenent/gp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scenent/gp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scenent%2Fgp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scenent%2Fgp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scenent%2Fgp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scenent%2Fgp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scenent","download_url":"https://codeload.github.com/scenent/gp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scenent%2Fgp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267417664,"owners_count":24083839,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cpp","graph","math","parser"],"created_at":"2024-11-15T02:26:59.929Z","updated_at":"2025-07-27T20:07:47.053Z","avatar_url":"https://github.com/scenent.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gp\ngraph parser for C++.  \njust input expression about x.  \nthen you'll get list of two dimensional vector.  \n\n## Usage\n```cpp\nint main(const _argc, const char * const * const _argv) {\n    gp::GraphParser _gp{};\n    // gp::GraphParser::exec(expression : str, xBegin : real, xEnd : real, xStep : real, varMap : map)\n    std::vector\u003cgp::vec2\u003e _vertices = _gp.exec(\"x + 1\", 0.0f, 100.0f, 1.0f, {});\n    for (const auto\u0026 _vertex : _vertices) {\n      std::cout \u003c\u003c _vertex.x \u003c\u003c \", \" \u003c\u003c _vertex.y \u003c\u003c \"\\n\";\n    }\n}\n```\n## Supporting Operators\n- Add (+)\n- Sub (-)\n- Mul (*)\n- Div (/)\n- Mod (%)\n- Pow (^)\n\n## Builtin Functions\n- sin(x)\n- cos(x)\n- tan(x)\n- asin(x)\n- acos(x)\n- atan(x)\n- log(x)\n- exp(x)\n- sqrt(x)\n- abs(x)\n\n## Screenshot\n**(renderer uses y-inverted coordinate system)**\n| Sine Function | Quadratic Function |\n| ---- | ---- |\n| `y = sin(x / 10.0) * 50.0 + 100` | `y = (x / 10.0) ^ 2 + 100` |\n| ![sine](screenshot_sine.png) | ![quadratic](screenshot_quadratic.png) |\n\n## Renderer\n[olcPixelGameEngine](https://github.com/OneLoneCoder/olcPixelGameEngine) by Javidx9\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscenent%2Fgp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscenent%2Fgp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscenent%2Fgp/lists"}