{"id":21120771,"url":"https://github.com/bomberus/mathparser","last_synced_at":"2025-03-14T11:12:38.848Z","repository":{"id":101803280,"uuid":"43378237","full_name":"Bomberus/MathParser","owner":"Bomberus","description":"A simple C# library to calculate a Math Equation","archived":false,"fork":false,"pushed_at":"2015-10-05T10:35:47.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T05:11:28.009Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Bomberus.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}},"created_at":"2015-09-29T16:01:55.000Z","updated_at":"2021-09-30T19:50:07.000Z","dependencies_parsed_at":"2023-03-08T18:00:31.460Z","dependency_job_id":null,"html_url":"https://github.com/Bomberus/MathParser","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/Bomberus%2FMathParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bomberus%2FMathParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bomberus%2FMathParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bomberus%2FMathParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bomberus","download_url":"https://codeload.github.com/Bomberus/MathParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243565425,"owners_count":20311705,"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":[],"created_at":"2024-11-20T03:18:28.760Z","updated_at":"2025-03-14T11:12:38.826Z","avatar_url":"https://github.com/Bomberus.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MathParser\nA simple C# library to calculate a Math Equation\n\n## How initialize it\nImport the Parser.cs into your Project and add the namespace MathParser then initialize the MathParser\n\n```\nParser parser = new Parser(null);\n```\n\n## How to use it\nGet the result of the library\n```\ndouble result = parser.calculate(\"2*x^4\"); //32\n```\n\n## Add Variables to the Parser\nTo use Variables in your expression create an List of the Type Variable and define your Variables\n```\nList\u003cVariable\u003e variable = new List\u003cVariable\u003e();\nvariable.Add(new Variable(\"x\", 10));\nParser parser = new Parser(variable);\ndouble result = parser.calculate(\"2*x\"); //20\n```\nIn this example the variable x has the value 10.\n\nBe careful when using the Variable x because the function Integral uses it to define the functions x- value.\n\n## List of supported functions\n- sin(x)\n- sqrt(x)\n- log(x,y) = log{y}(x)\n- abs(x) = |x|\n- fac(x) = x!\n- integral -\u003e uses a numeric algorithm to get the result, but\nbe careful to use the right order of the parameters:\n\nintegral(f(x),min,max,count of iteration steps (the higher the better the result but uses more cpu time)\n\nExample: integral(x^2,2,4,20) ~ 18,87\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbomberus%2Fmathparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbomberus%2Fmathparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbomberus%2Fmathparser/lists"}