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

Arrays in BASH

12 Feb 2017 14:48:27

Arrays in BASH

Once one is somewhat familiar with basic number and string handling rules in BASH, it is time to move on to learning about a container for these. BASH provides one such a convenient container in the form of array. This article is about the number indexed arrays. If you've ...

Read more »

BASH recursion examples - part 2

30 Jan 2017 17:08:29

BASH recursion examples - part 2

This article is a follow-up on the subject of writing recursive code in BASH. In the first part of the series I focused on a few more popular Maths functions and how one could implement them in BASH. In this instalment focus shifts to tasks one often comes across whilst ...

Read more »

Essential WordPress plugin hooks

17 Jan 2017 11:57:41

Essential WordPress plugin hooks

In this article I look at some essential WordPress hooks. By 'essential hooks' I mean actions and filters you use frequently when writing a WordPress plugin. Sometimes in the context of this article 'essential hook' refers to a hook you cannot do without to ...

Read more »

Bash recursion examples - part 1

15 Jan 2017 16:58:45

Bash recursion examples - part 1

Recursion in computer science is a technique based on two cases. One is non-recursive terminating case, the other, recursive. The former finds you the final solution, the latter reduces problem to the termination case. This is I guess the most important bit, one should ...

Read more »