Skip to content

Mathematical Software Components. This library is actively maintained, and aims to stay updated. New feature proposals are welcome, but may not be included.

License

Notifications You must be signed in to change notification settings

DK96-OS/MathTools

Repository files navigation

MathTools

Tests Coverage

Software Tools for Applied Mathematics are categorized into these modules:

Modules

  • Arrays
  • Format
  • Generators
  • Lists
  • Numbers
  • Pairs
  • Statistics

Import in Gradle Build Script

Choose The Modules that you want to import:

def mt_version = "0.7.4"
dependencies {
	implementation 'io.github.dk96-os:arrays:$mt_version'
	implementation 'io.github.dk96-os:arrays-ktx:$mt_version'
	implementation 'io.github.dk96-os:format:$mt_version'
	implementation 'io.github.dk96-os:generators:$mt_version'
	implementation 'io.github.dk96-os:lists:$mt_version'
	implementation 'io.github.dk96-os:lists-ktx:$mt_version'
	implementation 'io.github.dk96-os:numbers:$mt_version'
	implementation 'io.github.dk96-os:pairs:$mt_version'
	implementation 'io.github.dk96-os:statistics:$mt_version'
}

MathTools Modules

Each module is published as a package that can be downloaded from GitHub packages. Some modules depend on each other, but cross-module dependencies have been minimized.

Arrays

Numerical array operations not included in the standard library.

  • Whole Number types only

Arrays-ktx

Extension methods on Numerical Array Types.

  • Whole Number types only

Format

Tools that help format numerical data.

  • Rounding
  • Percentages
  • Serialization

Generators

Generate Numbers of different types within specified ranges, and with optional relative probability. Also contains number counting data structures of different capacities for different requirements.


Lists

For specialized list operations, with an emphasis on Number types.

  • Search within a range of indices in a List.

Lists-ktx

Kotlin extensions for the Lists module.


Numbers

Specialized Numerical Operations, Data Structures, Factoring, and Prime Number Caches.


Pairs

Simple Data Structures containing pairs of numbers of the same type.

  • Fixed Pairs
  • (Mutable) Pairs

Statistics

Process lists and arrays of primitive Number types, to determine statistical characteristics.

  • Determine the average, min, max, and standard deviation, simultaneously in 1 pass.
  • Outlier Detection Policy

For additional information, see the Project Wiki

About

Mathematical Software Components. This library is actively maintained, and aims to stay updated. New feature proposals are welcome, but may not be included.

Topics

Resources

License

Stars

Watchers

Forks