{"id":32154033,"url":"https://github.com/chapig/mathenize.jl","last_synced_at":"2026-02-18T21:01:09.895Z","repository":{"id":61798702,"uuid":"363524608","full_name":"chapig/Mathenize.jl","owner":"chapig","description":"Perform mathematical operations from strings in the Julia Language. ","archived":false,"fork":false,"pushed_at":"2021-05-16T23:39:28.000Z","size":48,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-21T11:50:30.586Z","etag":null,"topics":["julia","math","mathematics","parser"],"latest_commit_sha":null,"homepage":"","language":"Julia","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/chapig.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":"2021-05-01T23:06:01.000Z","updated_at":"2023-01-29T16:23:27.000Z","dependencies_parsed_at":"2022-10-21T11:15:31.882Z","dependency_job_id":null,"html_url":"https://github.com/chapig/Mathenize.jl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chapig/Mathenize.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapig%2FMathenize.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapig%2FMathenize.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapig%2FMathenize.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapig%2FMathenize.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chapig","download_url":"https://codeload.github.com/chapig/Mathenize.jl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapig%2FMathenize.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29596101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T20:59:56.587Z","status":"ssl_error","status_checked_at":"2026-02-18T20:58:41.434Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["julia","math","mathematics","parser"],"created_at":"2025-10-21T11:49:47.623Z","updated_at":"2026-02-18T21:01:09.889Z","avatar_url":"https://github.com/chapig.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mathenize\n\nSmall package to make it possible to perform math operations\nfrom strings in the [Julia language](http://julialang.org/),\nwritten by Luis C. Gómez.\n\nMost math operations are possible, check [Mathematics - The Julia Language](https://docs.julialang.org/en/v1/base/math/#Mathematical-Functions) to check functions.\n\n### \n\n\n\n### Installation and Usage\n\nUse Julia 1.6.1 or above.\n\n```@example\n(@v1.6) pkg\u003e add Mathenize\n```\n\nDisplaying log info.\n```julia\nusing Mathenize\nx = calculate(\"sqrt(complex(-90)) + 10im\", true)\n```\nOutput:\n```\n┌ Info: -\u003e sqrt(complex(-90)) + 10im \u003c-\n│  └Tasks: 3\n│  └Any[:+, :(sqrt(complex(-90))), :(10im)]\n│    └ Performing subtasks:\n│     └ sqrt is a valid symbol | Belongs to: sqrt(complex(-90)) | Length: 1 - 2\n│     └ complex is a valid Expression found in sym\n│     └ complex(-90) is permitted | Belongs to: sqrt(complex(-90)) | Length: 2 - 2\n│     └ * is a valid symbol | Belongs to: 10im | Length: 1 - 3\n│     └ 10 is a valid number | Belongs to: 10im | Length: 2 - 3\n│     └ im is a valid symbol | Belongs to: 10im | Length: 3 - 3\n│     └ Subtasks done.\n│     └ Checking if :Expr can be performed.\n│\n│ sqrt(complex(-90)) + 10im\n└ └ :Expr parsed correctly.\n0.0 + 19.486832980505138im\n```\n### Difference between parsing with Core.eval(Base.Math, :Expr) and Mathenize\n\n#### Using Mathenize, the following input will result in:\n```julia\nx = calculate(\"for i in 1:10; print(i); end;\")\n```\n```\nERROR: Error in Mathenize syntax. Check the log using calculate(math::String, true)\n└ -\u003efor i = 1:10\n    #= none:1 =#\n    print(i)\nend is not recognized as a valid math operation.\n └ The input given is a Expr that contains Any[:(i = 1:10), quote\n    #= none:1 =#\n    print(i)\nend]\n```\n#### Using Core.eval(Base.Math, :Expr)\n```julia\nCore.eval(Base.Math, Meta.parse(\"for i in 1:10; print(i); end;\"))\n\u003e 12345678910\n```\n\n### Author\nThis package was written by Luis C. Gómez.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchapig%2Fmathenize.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchapig%2Fmathenize.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchapig%2Fmathenize.jl/lists"}