{"id":41243815,"url":"https://github.com/agdturner/ccg-math","last_synced_at":"2026-01-23T01:23:11.991Z","repository":{"id":54380102,"uuid":"160959478","full_name":"agdturner/ccg-math","owner":"agdturner","description":"A modularised Java library with functionality: for fixed point and arbitrary precision arithmetic; matrices; getting prime numbers; and, generating pseudorandom numbers.","archived":false,"fork":false,"pushed_at":"2026-01-14T16:41:26.000Z","size":1275,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T19:58:46.247Z","etag":null,"topics":["arbitrary-precision","arithmetic","java","math","precision","prime-numbers","pseudo-random","surreal-numbers"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agdturner.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":"2018-12-08T16:53:38.000Z","updated_at":"2026-01-14T16:41:30.000Z","dependencies_parsed_at":"2025-01-05T19:21:05.779Z","dependency_job_id":"32baf40a-b289-4324-b05c-8fd2d07f6608","html_url":"https://github.com/agdturner/ccg-math","commit_stats":null,"previous_names":["agdturner/agdt-java-generic-math","agdturner/agdt-java-math"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/agdturner/ccg-math","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agdturner%2Fccg-math","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agdturner%2Fccg-math/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agdturner%2Fccg-math/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agdturner%2Fccg-math/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agdturner","download_url":"https://codeload.github.com/agdturner/ccg-math/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agdturner%2Fccg-math/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28677256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"ssl_error","status_checked_at":"2026-01-23T01:00:19.529Z","response_time":144,"last_error":"SSL_read: 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":["arbitrary-precision","arithmetic","java","math","precision","prime-numbers","pseudo-random","surreal-numbers"],"created_at":"2026-01-23T01:23:11.523Z","updated_at":"2026-01-23T01:23:11.973Z","avatar_url":"https://github.com/agdturner.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [ccg-math](https://github.com/agdturner/ccg-math)\n\n## Description\nA modular Java library dependent on and complimenting [BigMath](https://github.com/eobermuhlner/big-math) with functionality for:\n- [arbitrary precision arithmetic](https://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic);\n- [matrix](https://en.wikipedia.org/wiki/Matrix_(mathematics)) calculations;\n- handling [prime number](https://en.wikipedia.org/wiki/Prime_number)s\n- Generating [pseudorandom](https://en.wikipedia.org/wiki/Pseudorandomness) numbers numbers.\n\n- For many arithmetic calculations, the user specifies an [Order of Magnitude](https://en.wikipedia.org/wiki/Order_of_magnitude) for the precision of results. If a result cannot be precisely and accurately represented, then it is rounded to the given Order of Magnitude. [BigMath](https://github.com/eobermuhlner/big-math) arithmetic is slightly different in that it focusses on users specifying a precision (rather than a scale), so BigMath is geared for computing calculations accurate to a specified number of [significant figures](https://en.wikipedia.org/wiki/Significant_figures).\n\n## Latest versioned release\nDeveloped and tested on [Java Development Kit, version 15](https://openjdk.java.net/projects/jdk/15/).\n```\n\u003c!-- https://mvnrepository.com/artifact/io.github.agdturner/ccg-math --\u003e\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.agdturner\u003c/groupId\u003e\n    \u003cartifactId\u003eccg-math\u003c/artifactId\u003e\n    \u003cversion\u003e2.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n[JAR](https://repo1.maven.org/maven2/io/github/agdturner/ccg-math/2.0/ccg-math-2.0.jar)\n\n## Example\nSee [ccg-math-example](https://github.com/agdturner/ccg-math-example) for an example of how to set up and use the library.\n\n## Notes\n[Math_BigRational](https://github.com/agdturner/ccg-math/blob/master/src/main/java/uk/ac/leeds/ccg/math/number/Math_BigRational.java) is based on [BigRational](https://github.com/eobermuhlner/big-math/blob/master/ch.obermuhlner.math.big/src/main/java/ch/obermuhlner/math/big/BigRational.java), but has been slightly modified. Mostly this was to make it serializable.\nThe library is dependent on both [ccg-io](https://github.com/agdturner/ccg-io) and [big-math](https://github.com/eobermuhlner/big-math)\n\n## Development plans/ideas\n- Conduct some computational comparisons, e.g. compare Math_BigDecimal.sqrt(BigDecimal, int, RoundingMode), BigDecimal.sqrt(MathContext) and BigDecimalMath.sqrt().\n- Generalise [Math_BigRationalSqrt](https://github.com/agdturner/agdt-java-math/blob/master/src/main/java/uk/ac/leeds/ccg/math/Math_BigRationalSqrt.java) for [nth roots](https://en.wikipedia.org/wiki/Nth_root).\n- Create a pseudo random number generator for [BigInteger](https://docs.oracle.com/en/java/javase/15/docs/api/java.base/java/math/BigInteger.html). \n- Develop functionality for processing complex numbers where the real and imaginary parts are stored as [Math_BigRational](https://github.com/agdturner/ccg-math/blob/master/src/main/java/uk/ac/leeds/ccg/math/number/Math_BigRational.java).\n- Generally improve the coverage of unit tests.\n- Consider developing more functionality for [symbolic computation](https://en.wikipedia.org/wiki/Symbolic_computation).\n\n## Development history\n### New in 2.0\n- The library was repackaged and [Math_BigRational](https://github.com/agdturner/ccg-math/blob/master/src/main/java/uk/ac/leeds/ccg/math/number/Math_BigRational.java) based on [BigRational](https://github.com/eobermuhlner/big-math/blob/master/ch.obermuhlner.math.big/src/main/java/ch/obermuhlner/math/big/BigRational.java) was included and used in it's place.\n### New in 1.9\n- [Math_BigRationalSqrt](https://github.com/agdturner/ccg-math/blob/master/src/main/java/uk/ac/leeds/ccg/math/Math_BigRationalSqrt.java) for representing the square roots of [BigRational](https://github.com/eobermuhlner/big-math/blob/master/ch.obermuhlner.math.big/src/main/java/ch/obermuhlner/math/big/BigRational.java) numbers, some of which (including the square roots of prime numbers) are [irrational](https://en.wikipedia.org/wiki/Irrational_number).\n### New in 1.8\n- [Math_Matrix_BR](https://github.com/agdturner/ccg-math/blob/master/src/main/java/uk/ac/leeds/ccg/math/matrices/Math_Matrix_BR.java) for processing [matrices](https://en.wikipedia.org/wiki/Matrix_(mathematics)) of [BigRational](https://github.com/eobermuhlner/big-math/blob/master/ch.obermuhlner.math.big/src/main/java/ch/obermuhlner/math/big/BigRational.java) numbers.\n### Origins\n- Early versions of this code were bundled together with lots of other code developed for academic research projects. A separation of code produced [agdt-java-generic](https://github.com/agdturner/agdt-java-generic) a generic higher level library upon which this depends. Since Version 1.7 an attempt is being made to provide a summary of changes for each version released on Maven Central.\n\n## Contributions\n- Welcome.\n\n## LICENCE\n- APACHE LICENSE, VERSION 2.0: https://www.apache.org/licenses/LICENSE-2.0\n\n## Acknowledgements and thanks\n- The [University of Leeds](http://www.leeds.ac.uk) and externally funded research grants have supported the development of this library.\n- Thank you [openJDK](https://openjdk.java.net/) contributors and all involved in creating the platform.\n- Thank you Eric for the [BigMath](https://github.com/eobermuhlner/big-math) library.\n- Thank you developers and maintainers of other useful Java libraries that provide inspiration.\n- Thank you developers and maintainers of [Apache Maven](https://maven.apache.org/), [Apache NetBeans](https://netbeans.apache.org/), and [git](https://git-scm.com/) which I use for developing code.\n- Thank you developers and maintainers of [GitHub](http://github.com) for supporting the development of this code and for providing a means of creating a community of users and  developers.\n- Thank you developers, maintainers and contributors of relevent content on:\n-- [Wikimedia](https://www.wikimedia.org/) projects, in particular the [English language Wikipedia](https://en.wikipedia.org/wiki/Main_Page)\n-- [StackExchange](https://stackexchange.com), in particular [StackOverflow](https://stackoverflow.com/) and [Math.StackExchange](http://math.stackexchange.com/).\n- Information that has helped me develop this library is cited in the source code.\n- Thank you to those that supported me personally and all who have made a positive contribution to society. Let us try to look after each other, look after this world, make space for wildlife, and engineer knowledge :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagdturner%2Fccg-math","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagdturner%2Fccg-math","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagdturner%2Fccg-math/lists"}