The articles below touch on various aspects of math and programming. They are a result of my learning and teaching experience.
Tasting compositions (January 28, 2023) Generating compositions satisfying various properties. Property testing using QuickCheck via the Tasty framework illustrated.
Representing an integer in a negative base (December 10, 2022) How to express an integer in a negative-integer base.
Polynomial interpolation in Haskell (December 3, 2022): How to obtain the Newton form of an interpolating polynomial with implementation in Haskell.
Solving
linear diophantine equations in Haskell (November 19, 2022): An
exposition on how to solve a linear diophantine equation in two or more
variables with implementation in Haskell. The Haskell library
vector
is used.
Codewars kata: Evil numbers (November 5, 2022): A short discussion on a recent 6 kyu kata on Codewars regarding evil numbers.
Square-free numbers from given
primes (September 16, 2022): A comparision of two methods of
generating a sorted list of square-free positive integers with primes
factors from a given list of primes in Haskll. The Haskell libraries
criterion
and arithmoi
are
illustrated.
Random strings of
balanced parentheses (September 5, 2022): A Haskell implementation
of an algorithm due to Arnold and Sleep for uniform random generation of
strings of balanced parentheses. The Haskell library random
is used.
Using Haskell library
random>=1.2
(August 30, 2022): Basic usage of the
Haskell library random
version 1.2 is covered. The
benchmarking library criterion
is also used.