Monthly Archives: August 2017

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 built-in qsort (Quicksort) function was the best … Continue reading

Posted in Uncategorized | Leave a comment