Article of the week

Recursive implementations of some Maths sequences and series in PHP

Recursive implementations of some Maths sequences and series in PHP

28 Jul 2017 17:54:44


Example implementations of some popular maths sequences and series in PHP programming language.


In this article I give a couple of PHP implementations of popular Maths sequences and series. Broadly, each piece of code given returns nth term of a sequence / series. Each of the implementations depends on linear recursion. Each of the functions a is a static methods of class ...

Read full article »

Recent articles

Watermarking images with ImageMagick and BASH

30 Oct 2017 21:11:08

Watermarking images with ImageMagick and BASH

In this article I give a command line script for watermarking JPEG and PNG files with ImageMagick. Primary reason for me to write the script was the need of watermarking a large number of my own graphics files before posting them online as well as watermarking JPEGs and PNGs for ...

Read more »

Finding permutations with Heap algorithm in PHP

26 Oct 2017 16:54:32

Finding permutations with Heap algorithm in PHP

Suppose, you are given a list of two items, say one is called "a" and the other "b" and asked to find all the possible arrangements (also called permutations without repetition) of these items. All your arrangements should consist of exactly the number of ...

Read more »

Arrangements with repetition implementation in PHP

08 Oct 2017 14:29:33

Arrangements with repetition implementation in PHP

This article, and in particular PHP code it contains, is an outcome of my lack of patience with regards to making arrangements with repetition of finite set items. Recently, while solving a Probability problem, which eventually led to an infinite series, I reached a step which ...

Read more »

Matrix transpose operator implementation in PHP

05 Oct 2017 21:49:26

Matrix transpose operator implementation in PHP

If you look for a computer programming challenge, you'll certainly find a few decent ones implementing concepts Linear Algebra deals with. One of simpler operations, at least on the paper, one carries out on the matrix is switching rows and columns indices along the main ...

Read more »