{"id":17689049,"url":"https://github.com/supermarcus/mikeproblems","last_synced_at":"2025-03-30T21:44:03.612Z","repository":{"id":81700564,"uuid":"71609828","full_name":"SuperMarcus/MikeProblems","owner":"SuperMarcus","description":"A math lib inspired by Mike, parse string to linked math nodes and then calculate it with fractions","archived":false,"fork":false,"pushed_at":"2016-10-22T04:50:59.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T02:07:35.367Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SuperMarcus.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-10-22T01:43:38.000Z","updated_at":"2016-10-22T01:43:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"e26af138-048e-4809-af7a-ee3742cb7b2a","html_url":"https://github.com/SuperMarcus/MikeProblems","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperMarcus%2FMikeProblems","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperMarcus%2FMikeProblems/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperMarcus%2FMikeProblems/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperMarcus%2FMikeProblems/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuperMarcus","download_url":"https://codeload.github.com/SuperMarcus/MikeProblems/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246385410,"owners_count":20768668,"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-10-24T11:46:18.491Z","updated_at":"2025-03-30T21:44:03.589Z","avatar_url":"https://github.com/SuperMarcus.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Just another library inspired by Mike!\n======================================\n\nEverybody know how smart mike is! His\namazing ideas inspired thousands of\npeople everyday!\n\n**************************************\n\nNOTICE: This library is extremely\nbuggy right now, just don't use it in\nproduction.\n\nThis library parse math expressions to\n`l_frac_block` form linked list. You\ncan use internal APIs to calculate\nthem. The major purpose for this lib\nis education, so it just can't be as\nstable and complex as professional\nsoftware. It provides very basic\ncalculations in fractions, which means\neverything inside will be calculate\nand result with fractions.\n\nEXAMPLE\n-------\n\n```c++\n//Result will be stored here\nfraction f;\n\n//Buffer of two fractions\nfrac2_monomial f2m;\n\ndo{\n    //Request input from user\n    //Write fractions in such form:\n    //  (A/B)\u003coperator\u003e(C/D)\n    scanf(\n         \"(%lld/%lld)%c(%lld/%lld)\",\n         \u0026f2m.left.north,\n         \u0026f2m.left.south,\n         (char *) \u0026f2m.m_operator,\n         \u0026f2m.right.north,\n         \u0026f2m.right.south);\n   \n    //Call calculate API\n    r_frac2_monomial(f2m, \u0026f);\n    \n    //If error, notice first\n    if(f.m_errno)\n        printf(\"Wrong Number!\\n\");\n    \n    else printf(\n        \"The result is %lld/%lld\",\n        //North is always the number\n        //on the top\n        f.north,\n        //North is always the number\n        //on the buttom\n        f.south\n    );\n\n//If error detected\n//request fraction again\n}while (f.m_errno);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupermarcus%2Fmikeproblems","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupermarcus%2Fmikeproblems","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupermarcus%2Fmikeproblems/lists"}