{"id":24177701,"url":"https://github.com/saksham-joshi/eval-java","last_synced_at":"2025-09-20T22:32:12.993Z","repository":{"id":191628383,"uuid":"685051795","full_name":"saksham-joshi/Eval-Java","owner":"saksham-joshi","description":"With insane speed, solve mathematical expressions at runtime in a string using \"Evaluater\" class in Java. ","archived":false,"fork":false,"pushed_at":"2025-01-10T03:11:39.000Z","size":31,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T13:03:16.938Z","etag":null,"topics":["evaluation","java","math","mathematical-expressions","solver"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saksham-joshi.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":"2023-08-30T12:15:03.000Z","updated_at":"2025-01-10T03:23:07.000Z","dependencies_parsed_at":"2023-08-30T20:01:36.251Z","dependency_job_id":"f6a19c5a-7105-4e5c-933a-f5e719315f64","html_url":"https://github.com/saksham-joshi/Eval-Java","commit_stats":null,"previous_names":["saksham-joshi/eval_in_java","saksham-joshi/eval-java"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saksham-joshi/Eval-Java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saksham-joshi%2FEval-Java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saksham-joshi%2FEval-Java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saksham-joshi%2FEval-Java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saksham-joshi%2FEval-Java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saksham-joshi","download_url":"https://codeload.github.com/saksham-joshi/Eval-Java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saksham-joshi%2FEval-Java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276169392,"owners_count":25596952,"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-09-20T02:00:10.207Z","response_time":63,"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":["evaluation","java","math","mathematical-expressions","solver"],"created_at":"2025-01-13T04:15:48.315Z","updated_at":"2025-09-20T22:32:12.731Z","avatar_url":"https://github.com/saksham-joshi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔢 Eval-Java 🔢\n\n#### Python has a function called eval() used to solve mathematical expressions in a string but Java has nothing like this, so i developed this algorithm which can do so.\n\n  **You can use this package to create a calculator which can solve complex mathematical expressions.**\n\n\u003e #### ```Average Time Complexity: **O(n)**```\n\u003e #### ```Average Space Complexity: **O(k + m)**```\n\n## 📝 Sample code \n```java\nimport evaluater.Evaluater;\nimport evaluater.EvaluaterExceptions;\n\npublic class sample {\n\n    public static void main(String[] args)\n    {\n        try\n        {\n            \n            Evaluater eval = new Evaluater(\"1280.33/(12*-10.11)\");\n            System.out.println(eval.evaluate());\n        }\n        catch(EvaluaterExceptions.InvalidMathExpression excep)\n        {\n            System.out.println(excep);\n        }\n    }\n    \n}\n```\n\n\u003e #### **NOTE:** ```evaluate() methods throw InvalidMathExpression exception if the given expression is invalid. ```\n\n\n## ➗ Supported operators ➕\n\n| Operators    |   Name         | Precedence      |\n| :-------:    |  :-------:     | :-----------:   |\n| **+**        | Addition       |       `1`       |\n| **-**        | Subtraction    |       `1`       |\n| **x,*,X**    | Multiplication |       `2`       |\n| **/,÷**      | Division       |       `2`       |\n| **%**        | Modulus        |       `2`       |\n| **^**        | Power          |       `3`       |\n| **!**        | Not            |       `4`       |\n\n\n\n## 🔗 Developer Links\n\n[![portfolio](https://img.shields.io/badge/my_portfolio-000?style=for-the-badge\u0026logo=ko-fi\u0026logoColor=white)](https://sakshamjoshi.vercel.app/)\n[![linkedin](https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white)](https://www.linkedin.com/in/sakshamjoshi27)\n[![Github](https://img.shields.io/badge/Visit_my-Github-purple)](https://github.com/saksham-joshi)\n[![X(Twitter)](https://img.shields.io/twitter/follow/sakshamjoshi27\n)](https://x.com/sakshamjoshi27)\n[![Static Badge](https://img.shields.io/badge/mail_at-social.sakshamjoshi%40gmail.com-aqua)](mailto:social.sakshamjoshi@gmail.com)\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaksham-joshi%2Feval-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaksham-joshi%2Feval-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaksham-joshi%2Feval-java/lists"}