kotlin-rational | An immutable infinite-precision Rational ( ratio

 by   binkley Kotlin Version: kotlin-rational-2.1.1 License: Unlicense

kandi X-RAY | kotlin-rational Summary

kandi X-RAY | kotlin-rational Summary

kotlin-rational is a Kotlin library. kotlin-rational has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Immutable, infinite-precision FixedBigRational and FloatingBigRational (ratio, fraction) classes for Kotlin, that is ℚ, akin to BigInteger (ℤ) and BigDecimal (ℝ) in the JDK. DISCLAIMER This code has not been vetted by a numerical analyst in the ways that the JDK's BigDecimal or BigDecimal have been. For example, sqrt behaves poorly for extrema. It is a pleasure project, not a reviewed library. The build is obsessive. The author uses this library to try better ways for building locally, and building in CI with GitHub: the goal of the build is to discover issues before they impact others; the goal of the code is to represent rationals on the JVM in a sensible fashion. The library has two main forms of expressing rational numbers on the JDK, FixedBigRational and FloatingBigRational, providing finite and pseudo-IEEE 754 versions, respectively. This code is a "finger exercise", trying out Kotlin operator overloading and extension methods, and writing clean, clear, concise Kotlin. (If you find the Kotlin API unclear, please file a PR. What is clear to the author may not be clear to others.) It also explores the impact of NaN as a value for FloatingBigRational (FixedBigRational treats these circumstances by raising exceptions). In general, this code prefers expressiveness to performance. A secondary goal is to model the Kotlin standard library, and Java's BigDecimal and BigInteger types, as well as Number (an implementation base class in the JDK for numeric types).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              kotlin-rational has a low active ecosystem.
              It has 9 star(s) with 2 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 6 open issues and 18 have been closed. On average issues are closed in 58 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of kotlin-rational is kotlin-rational-2.1.1

            kandi-Quality Quality

              kotlin-rational has no bugs reported.

            kandi-Security Security

              kotlin-rational has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              kotlin-rational is licensed under the Unlicense License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              kotlin-rational releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of kotlin-rational
            Get all kandi verified functions for this library.

            kotlin-rational Key Features

            No Key Features are available at this moment for kotlin-rational.

            kotlin-rational Examples and Code Snippets

            No Code Snippets are available at this moment for kotlin-rational.

            Community Discussions

            No Community Discussions are available at this moment for kotlin-rational.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install kotlin-rational

            To build, use ./mvnw clean verify. Try ./run.sh for a demonstration. There are no run-time dependencies beyond the Kotlin standard library. To build as CI would, use ./batect build. Try ./batect run for a demonstration as CI would. This code builds and passes tests and checks on JDK 11-17.
            Use ./mvnw (Maven) or ./batect build (Batect) to build, run tests, and create a demo program. Use ./run.sh or ./batect run to run the demo. Batect works "out of the box", however, an important optimization is to avoid re-downloading plugins and dependencies from within a Docker container. This shares Maven plugin and dependency downloads with the Docker container run by Batect.
            DependencyCheck scans for dependency security issues
            JUnit runs tests
            JaCoCo measures code coverage
            PITest measures mutation coverage
            detekt runs static code analysis for Kotlin
            ktlint keeps code tidy
            Dokka generates documentation

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/binkley/kotlin-rational.git

          • CLI

            gh repo clone binkley/kotlin-rational

          • sshUrl

            git@github.com:binkley/kotlin-rational.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link