{"id":17324333,"url":"https://github.com/wysaid/simple-arithmetic","last_synced_at":"2026-03-12T09:25:10.809Z","repository":{"id":69994262,"uuid":"67695762","full_name":"wysaid/simple-arithmetic","owner":"wysaid","description":"A simple class for arithmetic parsing \u0026 calculating.","archived":false,"fork":false,"pushed_at":"2024-02-22T07:01:13.000Z","size":4218,"stargazers_count":6,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-12T01:03:39.145Z","etag":null,"topics":["arithmetic","calc","calculator","equation-curve","parse-equation"],"latest_commit_sha":null,"homepage":"http://arithmetic.wysaid.org","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/wysaid.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,"zenodo":null}},"created_at":"2016-09-08T11:07:13.000Z","updated_at":"2024-08-08T08:35:36.000Z","dependencies_parsed_at":"2025-04-14T16:52:20.099Z","dependency_job_id":"d69df63d-74c4-402b-b4df-66d8595c159e","html_url":"https://github.com/wysaid/simple-arithmetic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wysaid/simple-arithmetic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wysaid%2Fsimple-arithmetic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wysaid%2Fsimple-arithmetic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wysaid%2Fsimple-arithmetic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wysaid%2Fsimple-arithmetic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wysaid","download_url":"https://codeload.github.com/wysaid/simple-arithmetic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wysaid%2Fsimple-arithmetic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259374697,"owners_count":22847854,"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":["arithmetic","calc","calculator","equation-curve","parse-equation"],"created_at":"2024-10-15T14:10:20.272Z","updated_at":"2026-03-12T09:25:10.760Z","avatar_url":"https://github.com/wysaid.png","language":"C++","readme":"# simple-arithmetic\n\n## c++ version\n\nA tiny \u0026 high-performance calculation class without other dependencies.  \nYou can use it simply like:\n\n```cpp\nstring s = \"(1+1+1+1) ^ tan(((2+2)+(3-2)) * 0.5)\";\nArithmeticExpression expression(s);\nif(expression)\n{\n    printf(\"%s = %g\\n\", s.c_str(), expression.value());\n}\n```\n\nor with variable `x` and `y`:\n\n```cpp\nstring s = \"cos(x^2) + sin(y)^2\";\nArithmeticExpression expression(s);\nif(expression)\n{\n    expression.setX(0.8);\n    expression.setY(1.5);\n    printf(\"%s = %g\\n\", s.c_str(), expression.value());\n}\n```\n\n### How to use\n\nJust add `arithmetic.cpp` \u0026 `arithmetic.h` to your project.\n\n### ScreenShot\n\n![Tool](screenshot/screenshot2.png \"wysaid\")\n\n## javascript version\n\nA simple demo that just draw the equation curve\n\nView it online: [http://arithmetic.wysaid.org](http://arithmetic.wysaid.org \"wysaid.org\")\n\n### ScreenShot Web\n\n[![Tool](screenshot/screenshot.jpg \"wysaid\")](http://arithmetic.wysaid.org)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwysaid%2Fsimple-arithmetic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwysaid%2Fsimple-arithmetic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwysaid%2Fsimple-arithmetic/lists"}