
Recent Posts
Recent Comments
 boomslang on Writing an SVG Library
 boomslang on Finding Prime Numbers – Sieve of Eratosthenes
 boomslang on The Notorious Bubble Sort
 Chris Webb on The Notorious Bubble Sort
 boomslang on The Notorious Bubble Sort
Archives
 September 2017 (3)
 August 2017 (4)
 July 2017 (6)
 June 2017 (3)

Author Archives: Chris Webb
Plotting Taylor Series Sine Waves
Previous posts have included an SVG library, memoization of factorials and Taylor Polynomials. In this post I will bring these all together to plot various sine waves created using Taylor Polynomials. Very briefly, Taylor Polynomials are used to approximate functions, … Continue reading
Posted in Uncategorized
Leave a comment
Colour Converter
In this post I will write code in C to convert colour values between decimal red, green and blue, hexadecimal RGB, and hue, saturation and lightness or HSL.
Posted in Uncategorized
Leave a comment
Calculating Statistics
This is a relatively short and simple project which will calculate a few simple statistics from an array of numbers. It covers the most basic areas of classical statistics which might seem a bit oldfashioned in an era of big … Continue reading
Posted in Uncategorized
Leave a comment
Trigonometric Memoization
I recently posted articles on memoization of factorials and calculating sines and cosines with Taylor polynomials. It seems logical to combine the two principles and write a library to memoize the trigonometric values sine, cosine and tangent. If you just … Continue reading
Posted in Uncategorized
Leave a comment
Sines and Cosines with Taylor Polynomials
In this post I will write a C library to calculate sines and cosines using Taylor polynomials. It is impossible to calculate these directly but they can be approximated to any accuracy using this method, and I will show how … Continue reading
Posted in Uncategorized
Leave a comment
Memoization of Factorials
I am currently working on an article about calculating sines and cosines using Taylor Polynomials. These make heavy use of factorials so I started thinking about ways to streamline the process. This post consists of a simple project using memoization … Continue reading
Posted in Uncategorized
Leave a comment
Using the C Library’s qsort Function
I recently wrote an article on Bubble Sort, more as an academic exercise than a piece of practical and usable code. At the bottom of the post I suggested that the C library’s builtin qsort (Quicksort) function was the best … Continue reading
Posted in Uncategorized
Leave a comment
Linear Regression: Fitting a Line to Data
In a previous post I implemented the Pearson Correlation Coefficient, a measure of how much one variable depends on another. The three sets of bivariate data I used for testing and demonstration are shown again below, along with their corresponding … Continue reading
Posted in Uncategorized
Leave a comment
Finding Prime Numbers – Sieve of Eratosthenes
Prime numbers have been understood at least since the Ancient Greeks, and possibly since the Ancient Egyptians. In modern times their study has intensified greatly due to their usefulness, notably in encryption, and because computers enable them to be calculated … Continue reading
Posted in Uncategorized
1 Comment
Pearson Correlation Coefficient
Correlation is the process of quantifying the relationship between two sets of values, and in this post I will be writing code in C to calculate possibly the bestknown type of correlation  the Pearson Correlation Coefficient.
Posted in Uncategorized
Leave a comment