{"id":20742967,"url":"https://github.com/maxchen32/radicalite","last_synced_at":"2025-10-10T01:33:26.272Z","repository":{"id":237819225,"uuid":"795294518","full_name":"maxchen32/radicalite","owner":"maxchen32","description":"C语言编写的基础分数、二次根式和多项式类库。 radicalite is a library written in C for Fractions, Radicals, and Polynomials.","archived":false,"fork":false,"pushed_at":"2025-07-25T10:22:42.000Z","size":1024,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T01:32:44.729Z","etag":null,"topics":["fractions","polynomials","radicals"],"latest_commit_sha":null,"homepage":"https://maxchen32.codeberg.page/radicalite/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxchen32.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-03T01:07:53.000Z","updated_at":"2025-07-25T10:32:31.000Z","dependencies_parsed_at":"2025-01-18T02:21:43.574Z","dependency_job_id":"bb6b3d51-d1c4-46ca-9cec-d6321d491afd","html_url":"https://github.com/maxchen32/radicalite","commit_stats":null,"previous_names":["maxchen32/radicalite"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/maxchen32/radicalite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxchen32%2Fradicalite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxchen32%2Fradicalite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxchen32%2Fradicalite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxchen32%2Fradicalite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxchen32","download_url":"https://codeload.github.com/maxchen32/radicalite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxchen32%2Fradicalite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002405,"owners_count":26083374,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":["fractions","polynomials","radicals"],"created_at":"2024-11-17T07:08:29.121Z","updated_at":"2025-10-10T01:33:26.242Z","avatar_url":"https://github.com/maxchen32.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# radicalite\n\nA better version of maxchen32/radical.\n\n## 介绍 Intruductions\n\nC语言编写的基础分数、二次根式和多项式类库。  \nradicalite is a library written in C for Fractions, Radicals, and Polynomials.\n\n## 编译 Compilation\n\n确保你安装了C编译器（GCC/MinGW，Clang，MSVC……），如果没有的话，Windows用户建议\n使用[这个编译好的 MinGW-gcc](https://winlibs.com/)，Linux用户请通过所用发行版\n的包管理器安装。  \nMake sure you have a C compiler (GCC/MinGW，Clang，MSVC...) installed. If not, \nWindows users are recommended to use [this precompiled MinGW-gcc](https://winlibs.com/), \nand Linux users can install it through the distribution's package manager.\n\n建议使用 **[xmake](https://xmake.io/#/)** ，但是我们也提供 **[CMake](https://cmake.org/)** 支持。  \nIt is recommended to use **[xmake](https://xmake.io/#/)**, but we also provide\n support for **[CMake](https://cmake.org/)**.\n\n### xmake:  \n\n```bash\nxmake f -m release\nxmake\n```\n\n如果你在windows上使用MinGW，第一行得写成：  \nIf you are using MinGW on windows, the first line should be written as:\n\n\txmake f -m release --toolchain=mingw\n\n如果你想要安装到系统的话（默认 `/usr/local/lib` ）：  \nIf you want to install into the system (default is `/usr/local/lib` ):  \n```bash\nxmake install --admin\n```\n\n如果你想要编译示例程序的话：  \nIf you want to compile the example program:\n\n\txmake -a\n\n### CMake:  \n```bash\nmkdir build\ncd build \ncmake ..\ncmake --build .\n```\n\n如果你想要安装到系统的话（默认 `/usr/local/lib` ）：  \nIf you want to install into the system (default is `/usr/local/lib` ):  \n```bash\nsudo cmake --install .\n```\n\n## 用法 Usage\n\n+ [入门](docs/入门.md)  \n  [Getting Started](docs/getting_started.md)\n+ [参考手册](https://maxchen32.codeberg.page/radicalite)\n\n正在编写更多的文档，敬请期待......  \nMore documentation coming soon...\n\n或者你可以先看看头文件：  \nOr you can take a look at the header file first:  \n\n+ [fraction.h](include/fraction.h)\n+ [radical.h](include/radical.h)\n\n下面这些表说明了在不同类型之间运算应该使用什么函数  \nThese tables describe what functions should be used to operate between different types.\n\n### 加法 add\n|ADD       |Fraction        |Radical        |Polynomial     |int             |\n|----------|----------------|---------------|---------------|----------------|\n|Fraction  |addFrac         |Frac2Rad+addRad|Frac2Rad+addRad|int2Frac+addFrac|\n|Radical   |Frac2Rad+addRad |addRad         |addRad         |int2Rad+addRad  |\n|Polynomial|Frac2Rad+addRad |addRad         |addPoly        |int2Rad+addRad  |\n|int       |int2Frac+addFrac|int2Rad+addRad |int2Rad+addRad |       +        |\n\n### 减法 sub\n|SUBTRAT   |Fraction        |Radical        |Polynomial     |int             |\n|----------|----------------|---------------|---------------|----------------|\n|Fraction  |subFrac         |Frac2Rad+subRad|Frac2Rad+subRad|int2Frac+subFrac|\n|Radical   |Frac2Rad+subRad |subRad         |subRad         |int2Rad+subRad  |\n|Polynomial|Frac2Rad+subRad |subRad         |subPoly        |int2Rad+subRad  |\n|int       |int2Frac+subFrac|int2Rad+subRad |int2Rad+subRad |       -        |\n\n### 乘法 mul\n|multiply  |Fraction           |Radical        |Polynomial         |int               |\n|----------|-------------------|---------------|-------------------|------------------|\n|Fraction  |mulFrac            |Frac2Rad+mulRad|Frac2Rad+mulRadPoly|int2Frac+mulFrac  |\n|Radical   |Frac2Rad+mulRad    |mulRad         |mulRadPoly         |int2Rad+mulRad    |\n|Polynomial|Frac2Rad+mulRadPoly|mulRadPoly     |mulPoly            |int2Rad+mulRadPoly|\n|int       |int2Frac+mulFrac   |int2Rad+mulRad |int2Rad+mulRadPoly |         *        |\n\n### 除法 div\n|divide    |Fraction           |Radical        |Polynomial         |int               |\n|----------|-------------------|---------------|-------------------|------------------|\n|Fraction  |divFrac            |Frac2Rad+divRad|Frac2Rad+divRadPoly|int2Frac+divFrac  |\n|Radical   |Frac2Rad+divRad    |divRad         |divRadPoly         |divintRad         |\n|Polynomial|Frac2Rad+divRadPoly|divRadPoly     |Not implemented    |divintPoly        |\n|int       |int2Frac+divFrac   |divintRad      |divintPoly         |         /        |\n\n### 乘方 pow\n|power     |Fraction   |Radical     |Polynomial     |int        |\n|----------|-----------|------------|---------------|-----------|\n|int       |powFrac    |powRad      |Not implemented|qpow_frac  |\n\nP.S.: Radical类型还有一个squareRad专门用于平方，比powRad效率高。  \nP.S.: The Radical type also has a `squareRad` specialized for calculating squares, which performs better than `powRad`.\n\n### 开方 sqrt\n|sqrt      |Fraction   |Radical     |Polynomial  |int        |\n|----------|-----------|------------|------------|-----------|\n|          |sqrtFrac   |N/A         |N/A         |Radsqrt    |\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxchen32%2Fradicalite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxchen32%2Fradicalite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxchen32%2Fradicalite/lists"}