Symbolic Math in Python

Yes, you can do symbolic math in Python! The library to take a look at is SymPy. This article is not a SymPy tutorial, as I only want to walk you through some examples to show you the kinds of things that it can do. A good place to start…

Tom Tue, 05/22/2018 - 20:55
Turtle Graphics in Python

Figure 1. First four stages of the Koch snowflake.

Turtle graphics are a way of drawing where you control a cursor, known as the “turtle”, by instructing it how to move. For example, you tell the turtle to move forward over a certain distance, drawing a line on your screen in the process, then…

Tom Mon, 05/07/2018 - 13:39

Tags

How to Compute Colorful Fractals using NumPy and Matplotlib

Figure 3. Julia set for c=−0.4+0.6i, with "hot" colormap.

As a variation on the Mandelbrot fractal that I’ve computed before using NumPy array operations, I’d like to show you a few Julia fractals with some color added. I’ll concentrate on the Julia sets that are generated using the same quadratic polynomial that is used to…

Tom Sun, 03/25/2018 - 15:16
What Is a Quine?

Do you know what a quine is? Here is an example in Python…

Tom Sun, 02/11/2018 - 12:26

Tags