Recently in Basic Functions Category

We're All Sorted From A To Z

Something that I miss when programming in JavaScript is the wide variety of array manipulation functions available in my primary language, C++. We have, in fact, already implemented one of them with ak.shuffle which randomly rearranges the elements of an array. We shall be needing another one of them in the not too distant future and so I have decided to take a short break from numerical computing to add those of them that I use the most frequently to the ak library, starting with a selection of sorting operations.

Full text...

A Few Sequences More

In the last few posts we took a look at sequences and series, from the arithmetic and geometric to the Fibonacci, defined by the rules

s0 = 0
s1 = 1
sn = sn-1 + sn-2

At the risk of being tedious, there are two more sequences that I'd like to cover before we move on to a new topic.

Full text...

The Fibonacci Code

Last time we took a first look into the implementation of sequences and series, being ordered lists of terms defined by their positions and the partial sums of those terms respectively.
Whilst the implementations of arithmetic and geometric sequences and their associated series were somewhat subtle, they're not particularly interesting from a mathematical perspective and so this time we'll take a look at something a little more complicated.

Full text...

A Sequence Of Predictable Events

With our various pseudo random number generators we have sought to create sequences of numbers that come as close as possible to having all of the properties of truly random variables, despite being entirely deterministic.
Now this behaviour is somewhat atypical, in the sense that most sequences that we bother to name have values that are self-evidently deterministic.

Full text...

Gallimaufry

 AKCalc ECMA Endarkenment Turning Sixteen

This site requires HTML5, CSS 2.1 and JavaScript 5 and has been tested with

 Chrome 26+ Firefox 20+ Internet Explorer 9+