{"id":20027428,"url":"https://github.com/huidaecho/mafi","last_synced_at":"2026-06-11T05:31:27.135Z","repository":{"id":138941524,"uuid":"99449693","full_name":"HuidaeCho/mafi","owner":"HuidaeCho","description":"MAth Friendly Interpreter","archived":false,"fork":false,"pushed_at":"2020-08-13T03:26:10.000Z","size":159,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T04:43:26.389Z","etag":null,"topics":["calculator","interpreter","mathematics","programming-language"],"latest_commit_sha":null,"homepage":null,"language":"C","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/HuidaeCho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2017-08-05T21:54:54.000Z","updated_at":"2020-08-13T03:26:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"e98610d5-bfba-4bf1-ab93-066fcff25dbe","html_url":"https://github.com/HuidaeCho/mafi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HuidaeCho/mafi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuidaeCho%2Fmafi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuidaeCho%2Fmafi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuidaeCho%2Fmafi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuidaeCho%2Fmafi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HuidaeCho","download_url":"https://codeload.github.com/HuidaeCho/mafi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuidaeCho%2Fmafi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34184779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":["calculator","interpreter","mathematics","programming-language"],"created_at":"2024-11-13T09:10:17.663Z","updated_at":"2026-06-11T05:31:27.115Z","avatar_url":"https://github.com/HuidaeCho.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mafi\n\nMafi is a MAth Friendly Interpreter. The orignal purpose of writing this program was to learn how to write a parser manually without the help of a lexical analyzer (e.g., lex) and a parser generator (e.g., yacc). I started writing this code in 1996 on UN*X and ported it to CellVic, a PDA developed by a Korean company, in 2001. Mafi supports graphic calculation using the GD image library.\n\n![Pink Julia](pink_julia.png \"Pink Julia\")\n\n* Homepage in Korean: https://oldgeni.isnew.info/cellvic.html#_mafi\n* Manual in Korean: https://oldgeni.isnew.info/cellvic/mafi/index.html\n* Examples in CellVic: https://oldgeni.isnew.info/cellvic/mafi/index.html#Examples\n\nThe following example calculates pi up to 103 decimal places:\n```\nn=26; // decimal places = 4*(n-1)+3; n=26 will print 103 decimal places\nif(n\u003c1)\n  n=1;\nelse\n  n=round(n);\na=10000;\nb=0;\nc=14*n;\nd=0;\ne=0;\nf=M[](c,1,a/5);\ng=0;\n\n_v_width=-4;\n_v_prec=3;\n\nd=0;\ng=2*c;\nfor(b=c;;d*=b){\n  d+=f[b,1]*a;\n  f[b,1]=d%--g;\n  d=fix(d/g--);\n  --b;\n  if(!b)\n    break;\n}\nc-=14;\n(e+fix(d/a))*1e-3,\"\";\ne=d%a;\n\n_v_prec=0;\nfor(;;){\n  d=0;\n  g=2*c;\n  if(!g)\n    break;\n  for(b=c;;d*=b){\n    d+=f[b,1]*a;\n    f[b,1]=d%--g;\n    d=fix(d/g--);\n    --b;\n    if(!b)\n      break;\n  }\n  c-=14;\n  e+fix(d/a),\"\";\n  e=d%a;\n}\n```\n\nOutput:\n```\n3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821\n```\n\n## License\n\nCopyright (C) 1996, 2001, Huidae Cho \u003c\u003chttps://idea.isnew.info\u003e\u003e\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program. If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuidaecho%2Fmafi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuidaecho%2Fmafi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuidaecho%2Fmafi/lists"}