{"id":19419578,"url":"https://github.com/elkard/polynomialdatacontainer","last_synced_at":"2025-10-24T08:39:33.955Z","repository":{"id":130884816,"uuid":"124931818","full_name":"elkaRD/PolynomialDataContainer","owner":"elkaRD","description":"C++ project on the 2nd semester of CS at Warsaw University of Technology","archived":false,"fork":false,"pushed_at":"2018-11-11T21:46:11.000Z","size":2281,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T17:46:11.210Z","etag":null,"topics":["cpp11","data-structures","parser","polynomials","template"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elkaRD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-03-12T18:15:34.000Z","updated_at":"2018-11-11T21:54:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"56ed9f03-e523-4732-b8eb-d8d7a7537d52","html_url":"https://github.com/elkaRD/PolynomialDataContainer","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/elkaRD%2FPolynomialDataContainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elkaRD%2FPolynomialDataContainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elkaRD%2FPolynomialDataContainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elkaRD%2FPolynomialDataContainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elkaRD","download_url":"https://codeload.github.com/elkaRD/PolynomialDataContainer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240599178,"owners_count":19826959,"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":["cpp11","data-structures","parser","polynomials","template"],"created_at":"2024-11-10T13:18:16.763Z","updated_at":"2025-10-24T08:39:28.905Z","avatar_url":"https://github.com/elkaRD.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polynomial as a data container\nProject which I've done on the second semester of studying computer science at Warsaw University of Technology. My first task was to implement a class to store a polynomial and be able to do simple mathematical operations on it. My second task was to extend the first project and make this Polynomial class a data container.\n\n## Parser\nTo improve UI, I created a parser which could translate a single string to a polynomial. The parser works with all data types which could get a value from stream (with few restrictions).\n\n## Rules of creating a string to represent a polynomial\n\n- single string could contain any number of monomials\n- few monomials of the same degree are allowed; they will be summed\n- monomials are separated by character '+' (one exception -\u003e read the next point)\n- if the next monomial is negative, user should type a single '-' (without '+' before the minus)\n- given factor [TEMP] could not contain '+' and '-' characters (they are used for separating monomials)\n- spaces are allowed (but not required) to use between monomials but they cannot be used within a monomial\n\n\n\n## Correct syntax of the monomial:\n\n\t[TEMP]x[INTEGER]    \t- degree = INTEGER; factor = TEMP\n\t[TEMP]x^[INTEGER]   \t- degree = INTEGER; factor = TEMP\n\t[TEMP]x\t\t\t        - degree = 1; factor = TEMP\n\tx\t\t\t            - degree = 1; factor = 1\n\t-x\t\t\t            - degree = 1; factor = -1\n\t[TEMP]\t\t\t        - a constant; in this case [TEMP] could not contain 'x' character\n\nwhere:\n\n[TEMP]\t\t- value of the factor next to x; its type depends on the type used when created an object of Polynomial\u003cTEMP_TYPE\u003e class\n[INTEGER]\t- exponent of the x (values greater or equal 0]\n\n## Example string polynomials for parser\n    \"x^5 + 3x^4 - 5x^2 + 1\"\n    \"2x3 + 3x3 + 4x5 + x2\"\n    \"12x88 + 15x70 + 10x5 + 2x15 - x70 + 3x\"\n\nNOTE: You can use spaces between monomials in the string but don't use them when using build-in UI. This UI bases on std iostream and it loads all text until the first white character appears.\n\n## Copyright\nCopyright (C) Robert Dudzinski 2018\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felkard%2Fpolynomialdatacontainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felkard%2Fpolynomialdatacontainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felkard%2Fpolynomialdatacontainer/lists"}