{"id":17094628,"url":"https://github.com/alxnull/calcex","last_synced_at":"2025-05-12T21:06:41.179Z","repository":{"id":143647788,"uuid":"210784749","full_name":"alxnull/calcex","owner":"alxnull","description":"A simple mathematical expression parser and evaluator for .NET.","archived":false,"fork":false,"pushed_at":"2019-09-25T14:45:53.000Z","size":68,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T09:03:44.598Z","etag":null,"topics":["csharp","dotnet","evaluator","expression-evaluator","math-parser","mathematics","mathml","netstandard","parser"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alxnull.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2019-09-25T07:39:44.000Z","updated_at":"2023-10-23T13:52:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"24b5cdd9-85fa-4c5f-ac7e-0eb1c9183b67","html_url":"https://github.com/alxnull/calcex","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alxnull%2Fcalcex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alxnull%2Fcalcex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alxnull%2Fcalcex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alxnull%2Fcalcex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alxnull","download_url":"https://codeload.github.com/alxnull/calcex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253823420,"owners_count":21969846,"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":["csharp","dotnet","evaluator","expression-evaluator","math-parser","mathematics","mathml","netstandard","parser"],"created_at":"2024-10-14T14:23:39.427Z","updated_at":"2025-05-12T21:06:41.157Z","avatar_url":"https://github.com/alxnull.png","language":"C#","readme":"# Calcex\n\n[![Build status](https://ci.appveyor.com/api/projects/status/to343qmkhi2v5lae?svg=true)](https://ci.appveyor.com/project/alxnull/calcex)\n[![](https://img.shields.io/appveyor/tests/alxnull/calcex.svg)](https://ci.appveyor.com/project/alxnull/calcex)\n[![](https://img.shields.io/github/license/alxnull/calcex.svg)](https://github.com/alxnull/calcex/blob/master/LICENSE.txt)\n[![](https://img.shields.io/nuget/v/calcex.core.svg)](https://www.nuget.org/packages/calcex.core/)\n\nA simple mathematical expression parser and evaluator for .NET.\nThis repository contains _calcex.core_, the actual .NET parser library, the _calcex_ .NET Core CLI and a sample Windows GUI.\n\n## Overview\n\n**Calcex.Core** is a basic parser and evaluator library for mathematical expressions built on .NET Core.\nSome functionalities are:\n\n- support for many common arithmetic and bitwise operators (*, ^, %, \u0026, ...)\n\n- support for many mathematical functions (sin, ln, log, min, ...)\n\n- user-defined variables and functions\n\n- evaluate to double, decimal or boolean values\n\n- compile expressions into callable delegates\n\n- convert expressions to postfix notation and MathML strings\n\n**Calcex.Console** contains a simple command-line interface that provides easy access to the mathematical evaluators.\n\n**Calcex.Windows** contains _Calcex App_, a basic GUI calculator app for Windows built using WPF.\n\n## How To (Calcex.Core)\n\n### Simple example\n\n```csharp\nParser parser = new Parser();\n// Set a custom variable\nparser.SetVariable(\"x\", -12);\n// Parse\nvar tree = parser.Parse(\"2*pi+5-x\");\n// Evaluate to double\ndouble doubleResult = tree.Evaluate();\n// Evaluate to decimal\ndecimal decimalResult = tree.EvaluateDecimal(); \n// Compile to delegate\nFunc\u003cdouble, double\u003e func = tree.Compile(\"x\");\n```\n\nFore more, visit the [Calcex wiki](https://github.com/alxnull/calcex/wiki).\n\n## License\n\nCalcex is published under [BSD-3-Clause license](LICENSE.txt).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falxnull%2Fcalcex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falxnull%2Fcalcex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falxnull%2Fcalcex/lists"}