chunky v0.13.0 API Reference
Modules
Extended chunking and enumeration manipulations.
The CacheAgent is a dead simple wrapper of an atom named Agent around a Map.
Functions for creating and manipulating fractions.
Functions for working with geometric shapes, patterns, and surfaces.
Functions for working with triangles. For predicate functions related to Triangles, see Chunky.Geometry.Triangle.Predicates
.
Predicate functions take a single triangle as an argument, and return a boolean, an assessment of some characteristic of the triangle. Predicate functions will, in almost every possible case, return a boolean, even in situations that would normally throw an error (like invalid triangles).
Functions for creating and manipulating a two dimenesional grid.
Integer math, number theory, factorization, prime numbers, and numerical analysis.
The Operations module provides functions and macros for making particular repeated operations and series easier to work with. Most of these are just simplifications around enumerations over values, with support for either Integer or Fraction values.
Predicate functions are functions of the form is_*?/1
. Predicates take any integer, and return a boolean.
Using these functions you can test numbers for specific qualities. Some of the numeric qualities are useful
across a wide set of domains, like is_prime?/1
, some are specific to number theory, like is_pseudo_prime?/1
or is_carmichael_number?/1
. Others look at the representation of numbers as patterns of digits, like is_palindromic?/1
and is_cyclops_number?/1
.
Create and manipulate mathematical sequences.
Working with basic sequences.
Online Encyclopedia of Integer Sequences (OEIS) sequence iterators.
Sequences from the Online Encyclopedia of Integer Sequences dealing with combinatorics, set manipulations, and permutations.
Sequences from the Online Encyclopedia of Integer Sequences dealing with numeric constants, digit expansions of constants, constant value sequences, or constant cycle sequences.
OEIS Core Sequences.
OEIS Sequences dealing with Factors, Factorization, and properties of integer factors.
Sequences from the Online Encyclopedia of Integer Sequences dealing with multiples and additions.
Sequences from the Online Encyclopedia of Integer Sequences dealing with powers and simple polynomials.
OEIS Sequences dealing with Primes, Pseudo-primes, and primality. For related sequences, see Chunky.Sequences.OEIS.Factors
Sequences from the Online Encyclopedia of Integer Sequences dealing with number representations, like alternate bases, digit contents, and patterns of digits.
OEIS Sequences for Sigma values.
Utilities for developing sequences.
Test sequences with variations on sequence constructions.
Working with sequences and recurrent/recursive mathematical functions can lead to really long processing times in some circumstances. The Chunky.Timeout module provides some macros and functions for making things a little more sane.