7/52: Mathematical exorcism - Quaternions, higher dimensions, fuera!

April 10th, 2008

“Oh dear! Oh dear! I shall be too late!”

– The White Rabbit, Alice in Wonderland

And I am late, in a few ways. But join me in my rabbit-hole.

This is an exorcism of sorts. I found out the answer to a little question that was knocking around my brain for, oh, around 15 years…

Around 1987 I read a book called Chaos by James Gleick. This was something like a formative experience: being shown, in words and pictures, the strange ways nature (as well as man-made systems) could act: simple rules producing complex, “unpredictable” seeming behaviour; nature being self-similar on many levels (i.e. fractal); the way that order hides with disorder, and vice versa… The book also covers some of the interesting characters and situations around the emergence of Chaos theory.

One of many mad illustrations in the book caught my eye. It was a computer-generated picture showing a sort of colourful square divided into four colours, four segments, like a pie. But this psychedelically demented pie was odd: between two any two colours on it, the other two colours interposed themselves. Ad nauseam. Here’s that diagram, which I’ve recreated:

Newton-Raphson 'pie' diagram for solutions to z^4 = 1

[click image to see more on my flickr site]

This fractal diagram is borne of a certain question concerning complex numbers. I am sometimes perversely interested in higher dimensions and strange mathemagical things, so when I found out years ago that there was a higher dimensional extension to the complex numbers called Quaternions, I wondered how the above picture would extend in these higher dimensions - would it be particularly interested or mad?

In order to find out the answer, I wrote a visualisation tool in Processing that pretty much told me the answer… (Download processing script - zip file, 16K).

Then I went and looked at the mathematics behind Quaternions, and found out that the answer I was seeing in the visualisation was correct.

They say one of the best ways to make sure you have understood something is to explain it to someone else - so with that in mind, I’ve written up the full gory details of the ‘answer’ on the create52 cookbook.

(Note on quaternions: The Quaternions are a number system that can describe rotations (in 2, 3 and 4 dimensions), and they are an extension of Complex numbers. Like a lot of things that bear some sort of fruit in mathematics, the Quaternions were originally considered “mathematically pathalogical” (what a term).)

As penance for being somewhat lazy with getting this one out, I intend to do something with some utility next. Gawsh. Possibly something faceboot related, but actually useful with it…

6/52: Typography toy

February 15th, 2008

I wanted to start on a software tool for playing with typography (text) in a casual, bullying sort of way. Hence this typography toy, which I have stopped fiddling with now…

There’s a set on flickr of random pics I made with it. It’s more fun to play with it than look at the results, though…

It’s written in Processing again. It’s downloadable via the following links:

  • Windows: download (approx 300K. Java must be installed on your system.)
  • Mac OS X (and possibly earlier versions): download (approx 300K)
  • Linux: download (approx 300K)

The Processing source code is included with each download. If you download it, please read the readme.txt file - or else you’ll probably just scratch your head and go “whaaaa?” before resorting to a life of crime….

Again I’m reminded that Processing isn’t the most natural seeming choice for software where you need some sort of complex interface: it doesn’t seem to come with the ability to add buttons etc. to your UI (although you can implement them yourself - doh!) - hence the large amount of key presses possible to control this thing. Of course, with some effort, a nicer interface is well possible…

“Typography” probably isn’t an accurate word for what this thing is - but somewhere a man is being eaten by a gruffalo, and that is much more important, don’t you think?

5/52: Million point sculptures: interactive toy written in Processing

January 24th, 2008

A while ago I played with some mathemagical things called Million Point Sculptures. I was wanting to go back to these some day, so I’ve used a programming/visualization/interaction environment called Processing to make an interactive Million Point Sculpture toy. I added a few things like colours and weirdo line mode and I love some of the results…

Sadly I can’t post the Processing interactive applet currently due to browser/haircut issues (that is coming shortly), but for now have some images that came out of the applet I made…

The full set is at http://flickr.com/photos/redlex/sets/72157603786503565/

4/52: more Soup

January 7th, 2008

Things have been a bit delayed due to holiday madness and illness and generally the world exploding…

I’ve added more things to Soup, the film development database site. In particular:

  • a howto on shooting redscale film (some redscale examples at flickr)
  • a development timer applet which makes noises at you - aid memoire. (To see it running, do a search and then click on a time in the results table.) Applet source is on cookbook wiki.
  • added data on Microphen and HC developers to soup database

3/52: cookbook wiki and some mathematical notes

December 28th, 2007

Not very exciting, this one, and even less exciting to do…

I realised at least one thing I want to do depends on collating/checking some old maths notes/calculations. And I’ve wanted to make them into electronic notes for a while anyway.

So I’ve just created a create52 cookbook wiki.  And checked and collated some old maths notes that I’m going to be needed for something else.

I never want to see another equation in my life!

2/52: thermalite doodlings

December 17th, 2007

Thermalite is an aerated concrete that is used as a light, insulating building material. It’s also quite good for hacking away at to form things. All you need is a wood gouge or two (buying an old used one is a good idea - it’ll get blunt anyway), and surform tools can be useful (think grater).

flow: a thermalite sculpture

View the photos at flickr.

The material I worked with here has a boring grey colour (lighter coloured variants are available) but I quite like the rough texture of it, and the air bubble holes. You can always paint your creation when you’re finished, but it doesn’t always improve it - I think the swirly biscuit thing was better unpainted…

By the by: cement dust is really, really bad for your lungs and you need to wear breathing protection if you ever do this. (Also, if you wet the surface you’re working on it prevents quite a lot of dust getting in the air.)

A fellow traveller

December 11th, 2007

I’ve found a fellow traveller on the create52 journey and am delighted to be hosting her own create52 efforts: http://loes.create52.com.

Quite inspiring, that somone else is doing this now…

1/52: Soup!

December 8th, 2007

A bit delayed, but here is the first week’s item: Soup. It’s an online database of film development times for various film types and chemicals. Much more data can be added, plus a few useful tools I have in mind. This is defo one for further development in the future.

I’m going to create a general jumping-off page for all the items sometime soon. But not yet, patience child!

Who is your DaDa?

December 4th, 2007

I now have something put together. It’s a web based database of black and white film development data (plus hopefully a few little tools to make a few things a little easier) - but after wrestling with DaDaBik for a while, I don’t really have time to secure what I’ve made in order to safely make it public. So I’ll post it either tomorrow or Weds.

Monday is always tomorrow

December 2nd, 2007

I’m going to be sticking things up on a Monday, starting tomorrow, Dec 3rd.

Been pondering on what I’m doing here, and I’ve realised that doing create52 is a Very Good Thing for me. If I don’t meet the challenge very well (bets anyone?), at least I will have tried, and have gotten some things ‘out’ in the process. Much better to have tried and have done something, rather than not try at all.

As for the things I will be putting out: they will vary, of course, in usefulness, to both me and other people. Some might be useful tools, others might just be something random I made. Caveat emptor - but for the price, who’s complaining?

Create52 is bringing me face to face with my own productive (and creative) process and how that works, and I’m loving that (so far). What is useful about the way I think? What hinders me?

Trying to produce something each week, particularly if it’s a thing that I hope to be useful to others, is going to be best served by a principle of:

usefulness and function over presentation (but never forgetting clarity)

In other words, if I make a small website tool hoping that it is useful to someone, somewhere, it won’t be prettified up to the nines: it will just do something. But I’ll try not to make it be hideously unusable, either!

Which brings me also to this: I am hoping that some of the things I make might be seeds of further development.