# Category: Code

## Drawing a shape made up of circles in latex (Part 1)

Below is the latex code I used to create diagrams like this.

## Solving Simultaneous Equations(Graphically)

My next challenge is to write code to, first of all, generate simultaneous equations and to then plot them on a set of axes.  I’m hoping...

## Name that Graph

I played around with the code and have now managed to produce code to generate images such as this.  I also managed to implement code to...

## Naming Simple Lines

I have now written the code to generate diagrams like this. I have got the colours to roughly cycle, but I am wondering if I need...

## How I drew the linear equations using latex

Below is the code I used to create the diagram. \documentclass[a4,12pt]{article} \usepackage{tkz-base} \usepackage{tkz-fct} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \noindent For each of the following lines, \\ find the...

## Can you find the equation for each of these lines?

Created using latex.

## Mersenne Primes

I saw an interesting challenge on SoloLearn about writing code to find all the Mersenne primes up to a number.  I started by writing a function...