**Quitter’s Raga** by Gold Panda

## Archive for October, 2010

### Gold Panda – Quitter’s Raga

October 31, 2010### October 31, 2010

**Mathematical Biofluiddynamics**

Covers two very different questions:

- How do
**fluids in an animal’s body**flow? Like how does blood squeeze through arteries and veins, how does air (a fluid) flow into and out of sacs during respiration, how do capillaries work, etc? - How do
**aquatic animals**swim themselves along with their tails, fins, hydrodynamic bodies, etc?

### Sine and Cosine

October 28, 2010This is for my homies in maths class. I know many of you fear the **sin** & **cos**.

They’re just a way to **convert** from **circular coordinates** to **square coordinates**.

You want to get to the red dot. **If you’re at sea** you set your bearing **θ** and sail straight there. **If you’re in the city** you walk north and then east.

**Cosine** tells you how far you have to walk **crosstown**; **sine** is how far **uptown**.

That’s basically it. If you think uptown and crosstown look like legs of a right triangle, you’re thinking along the right track to understand where the many sin & cos formulæ come from.

Here’s a GPL’ed picture of why we think of cosine as a wave:

### sqrt10

October 26, 2010`1.011010100000100111100110011001111111001110111100110010010000`

10001011001011111011000100110110011011101010100101010111110100

11111000111010110111101100000101110101000100100111011101010000

10011001110110100010111101011001000010110000011001100111001100

10001010101001010111111001000001100000100001110101011100010100

01011000011101010001011000111111110011011111101110010000011110

11011001110010000111101110100101010000101111001000011100111000

11110110100101001111000000001001000011100110110001111011111101

00010011101101000110100100010000000101110100001110100001010101

11100011111010011100101001100000101100111000110000000010001101

11100001100110111101111001010101100011011110010010001000101101

00010000100010110001010010001100000101010111100011100100010111

10111110001001110001100111100011011010101101010001010001110001

01110110111111010011101110011001011001010100110001101000011001

10001111100111100100001001101111101010010111100010010000011111

00000110110111001011000001011101110101010100100101000001000100

11001000001000000110010100100101010000001001110010100101010110

11011011000111111010000111011111101111101001101001110100000001

01100111010111100100100111110000011000100001001100100110110101

01111001101010100101000101101100101000110111000110011110011010

00001101101101111100000100011011011000111000000010000010011011

10000000001111111100011001000110101001011110011001100101010010

11110100111110111101111011010000111101011111111110110101000011

01111100011111111001010001000100001001100000111110111101010000

00110001001000001111101111010101010000001110000101100000111111

10010111101110111101010001011110111110111000011001100011000100

00011100010100010111010101111111101011111001110110010110100100

10011110100101001110110001111111010110010111000100000101111110

11111111000010111000011111101001110110001111101111000000011111

00110101100110011100100000101111001011111110010100000000101110

00010010001100111100001011110100100101001010101110000001000110

10111111100111110001111011110111100101000111110101000110011101

10100110101111100011000001010010111100110001100111110001111100

00101001000010111110011101101001001010011011000001010111100011

00000100001011010110000100111110110100100001111100100100100100

11110101101101110001111110000010110111001101001010010000001101

10000010011101111011101000100100010010100110000011110101001110

10101010110100001110111010100011001000011111011101001000100111

11010001101010011111101001000000110000101111100010000011111011

01110110100101001110111110110101100011001001100110000100110011

01110101110000101000011101101010010000010001011100001111010001

00110011101000000110100001000010001111010110111000111000001100

00001111011001000000011011101010011101101000110100011101100110

10000100011110010110110001011100110101011001011100101101110000

00111111110011010101000000110000110100000100101001010000101101

01100100000001100001000000011110111101101111110001101101111010

01000100010100101000101011010011110010010010001100011010001001

11000110000000001011101101000000101010001011010101101011000001

00000111111101010111011110011011100000110111010000110001100110

11010100100000110001111111100111111111111111010101110101011111

10010001110001000010011000000011001101101111010101110000100110

10000100100001011101101001011110100100011011001111100010111100

10000001011011011100100111001001011011100101110001110101100000

10100001111110001000100011110000100010100000101001101110000100

00000011001100111011011100001011001110010110111101100110001010

11101110011100011110010000101110001001101000110100110111101001

10000001110010111100100010000000100011010001100001001111111111

11000010001001000101001101000011100111101010100101111010100110

01100110110110110010011110001111001110011100011111100101001101

01100000100100101010110011100001001000001010101110001110010101

01000011100000110101010101000100010110100010000110001100010111

01111000110011110110000000110101000011010000001011111110100001

01111100101001111011001000101111100101110001110010101110000000

01111010111101010111011100011011100000100101101100110000101000

00111001111000001101110110101010010001110000001000110001101010

01111111000011111000111100110010001110110011011000101000000111

01001000100101011010001001110000001011010110101000001000000100

01111101101110011000100111110110001110101000101001100100111010

00010100011001101111000000110100001100000111100010001000101000

00000100100001001101100101001111010011111001101110110011110101

00101100110001110101001000100111010111010100100011000110110101

11000110001100111100010010000000110010010110101111100101010010

01101111110101110110010110011001111000101101001101001011000100

11011101101010000110011110111101100011100100100000000010100111

11111010101000110010000001011100110101011001111100001010111010

00111101001111001110100111011111111000001011110100011011010011

01110101110111000100010111100000000101011110110110100101011011

01111110101011110001101100000101110000100010110010001101010111

11111011101011110100000111011111111110110010010110110110111000

11110111011110001111110000011100001010111011101111001110000110

11010010011110101111110101101011110100010001100000100010000010

10010101100010101101110100000001110010100111111100011011011010

11110000001011011111101100000110111100011011100000101001101110

11011011110001100111111110000101101100100111010011100000100001

10000110110011101000010011011101010111000110110001011001010100

10011000011100111101001000010001110001101010101011100110100111

01100000000001111001010111100101000100010110111100011000001010

00111110000010100100111111011000100101101000111010110111100101

00101111011100011100000010110101101001010001011101101010010100

10110000010010100100010000001100101010111100100101000011100001

11110000111101001001101111110100001111001110111110100010101111

01100011000001011010010100111010000101110111001010001000101011

00101000010011111110110100000001101100100110000010100100010101

11011000001110111010000011010011010101011000110110000001110111

01000100010101100111101001011001000011111010101010001001111110

10110111011101010111101000100000010100101001011101011011011011

11010010101000100010011110001111010000100100101011101100011100

01101000010101001000000011011100001011101001100110010100011110

11001101110010110111101101101000000101111000100001100100101111

10010101101100011011100100100110010100010010101101000000010011

00001100110001100000011101011001001010001101011001101010001001

10110110111110001000011001001111001111010101011101010011000110

01001101011001101010100011100001100010010101111010100100111010

01010111101001011001011101110101010001111111101000001111011000

00011011001100001100101110111010101000010011101111011100010000

00111101001011010010110101010111101101101100000101010011101001

01111100110111110000101100011101111111111000101001001010001101

00110010000110110010100101000111000011101010111001000001010110

00101100111100111011011100011001001010110111100001111001000011

00011010000100111000101110110111101111100111001100000101101101

00011011110111111111100000101111000111010101001111111100111110

11000000010000101011110111001000010110110011001001011001100101

10010100100010101010000111101110000110010000111110001111010001

01111000011100001111100011000010010110110101100101111000000001

10000011010101010110111000001011111101010011101101001111110011

11100001010110001001001010110101101101010010001101100001100000

10110010110010100000110001111101000100110010100010011110101101

00011010011001101111110101010110111111011100001010011010011111

00011110101001001111100100001001111001101010100001001011010100

01100000101000001101010010010100100101011011011010111110010011

01110001110011110111011111100101101110111010000000101010011101

11111100001000101101100011010011100001011110101000101110110011

00100000000001110101110100000011000001100110010000110001111011

11110010100001000101100001001000000001010010011110111011100010

11101010000001000010011101001001110111000011000011111111111101

11100001001000011010011110111110010000110100111110000011110100

00101010101011111110111101111001010011000111110111010010111010

11111101101111000010110110101111101111101100111000000010111001

10010110111011011101111011100011111011101110001100110110110100

10101101100011100100101110011110111100000001111000101100100100

00111110000000011010011101001000111110110011111011000011001000

11100010111000100111110101100100011111011010101001000011011101

10001010100110010010111001110001111101011101000101001101000100

11111101101101010001011011111100010101101111101000011110101011

10011010101001010110000111010011111011010100000001111101101001

10110001011110110110011010111000000111011111101110100001000111

10110101010010010000010101110101111110111000111110010100111111

10010101100001011001010001101011101100100000100000010110000101

11100000000101100110010110100000000101101110110100111110011101

10100111100101101111011000110011110010011101000100111111011011

00000101110010110000111010111111100011010000000001101000110010

11101001100111011101011010100010010001111110001001111001011000

00000010100011111101011100000010011001100100011010011001010101

01001010001101010000000000001111111111100000100100001010101111

11101111000010110110001010010010101000100000010100010110011110

11010001001001111010010101001100110011101100101101100011110011

11011000110111001110100111000100011100100111001111100100010101

01100110110000111001011110110010100000100111100010100111111100

00101110111000101110111100010001010001011011011101110010101011

00001111011011101001010101010111010001001000111110010011111011

10101110000000111101101001111100110100101101010010010111000111

01100000111100110011100000001110111110011110110110111000101011

00111011101111101010001101101100111100011111001110001001101110

01000010101010100101100110000100110101001101101110010101011000

01001011101100010100101000101000100100010111111100111101000011

11011011001101110101011111110000101000001010000111111100001001

00111111100010000110001111010010110110001100000111001000001001

00000100000001000100101100100011001011110011100011000100000000

11001011110001110000111010101110001001011100011101110101001111

01111001011001101101110110010111011000010100101110101110100011

01011110010111101000001000010010001011000111010101110011111101

10110001001101111101000010100001100000011011001000001100111001

11011101011101010011011011101011100101000100111001001110111101

01010111001010100010011011001100010111000101111000001011110111

10011011100100001000110011111011111110101011011010110100111010

00001000110100001010111000100001000110011010110000001100101001

00111000000111110100110100000101010000100000101110010001001010

11001100001111110000111110110011010010101100101100000111110010

01011011111100101101011101000011110100101101111101100010010111

10011110101010011100100011100111111101100011011111010110011000

01011000011000101110010111100010100111010101000100101110110000

00101111111000001000010101010001101000101000110100100101110110

11110011011001001011100100101000110010100001010000001010011111

11011011011000101100110001111110010111101110001011001001101100

01101000110000010000101000101001010111010010010001011101101110

00001000010110100010100110110101110111100011001010111101011010

10110110000100010110111011111000101111101000010110010100100000

11001110101010101000100010110101101100001011001110011100100101

10000111001100001011011010001101101000001101110100001101110110

01111111100101110011001101011100001111111100010110010101011100

01001010000010110100110011100011000011100111110011011111100001

00101001011000010001111000010001011101000110111111101011011101

01010011001110101100110111011000010110001111000101001010100001

00001010001011010010001111100110100010100010101111000111110100

11001010000111110100011010011100100111000111000101111011111001

00000101010100001011000001110000010101001010011000110011010101

00110010000110101101101100100100111000111101000101101011101000

11010010111111011000110000100011010101101101011111000101101010

10001000011011001001000101011101100011011100101111111000110001

10111101010000011111100110000011011010101111011001110100010000

01111111010000011100100100011011011000010000011101111001011100

10101110100001000110000100001100010101011010000100101100111011

01011000101111010011001011010100011111111100111010001111100001

10111101010100011000011111100010000010001110010000001110000000

01111011001100001100001010001001100011110001010100110100111011

10011011001111001001101000011101011110110010101011011001110000

11001100110000011000101011000111011100110000001001100111011001

00011000111000110010101110111111111010101001000011110010000010

00001101000100001000100010000001101110100111110000001011011111

11010111010100011010010001110011110010100110011011010100011101

00101100010000110010110111110000010111011000110010010000001011

01010101010100010101100101110000010000000000101111111000011000

00101010011000100101010001010010110001010001000110111010001100

11100100001011001011101100011010011011110111000011011101001011

11110111110100100011010011000000101111011000110101010110111011

00011101000110100101000010100000010100010100001001101001101001

11111110100100000010001110101011101101111001101100001000000111

00010101000010100110100001000000101010001100011011010010011101

11100000111110111110101000111100110001001111001001101111000111

11001010110011111011000111101011101111001001110110001111001110

00011001101001001101011110100011111011111001001001000100100000

10100101111111010001000111010100011001001000110111111010110100

11111010000001001110010010110101110011011011011110000110100010

10011010010000101101100011100110010110100111001101001010111101

00100001011101001010010101111110110000110000010001110010010001

00111010000001101010111101000000100110110001001001111000011011

10110010001111010011011000111001111000000111110011111010111011

10000101010111100110100001110011000110001101001111010111000100

11110110101101010001101101001110101011110110101000011101111001

11001011101111100111101000000001001010100010000110111010100110

10010010011111100100111001110101111000111110100110110011101100

11011100110010000111000010011110101101111001010110011111010100

10010011100010101011001000000010001001011110101111011111011001

11000000001000000101010110111110011001110010001111100000001001

00001011110111011110010100000010101010110001101011111010010001

11110000110111000001101101101101110000000001010011011110000001

10011110010111010110000000011110100100010001100101011000010110

01111000110101111001100100100111101111110110001110110000011010

01011000110100100010000010011001110101101000111101010010010101

00110000010100111111011011010110011101010000101000011100111000

00110000011001011001100111000001010010110100011110110011101111

11100010011100111001000101001011110101000010010101111000111100

10010101111011101011010011111010111100000101100111001101100000

11101001000111110001000101001000001010001110111000011001001010

10110010111101010010001101101000011011110001010011011100111011

01100000101101111111100000010000010101010001100101110000000110

11000000010100101101101000101111100100010100010001001110011000

00111000001110001011011011101100011001010010001001001110110110

10111111111100011111101100000010101000011111001100110011001000

11011011101100010100101010111110110011000010111110010001101001

00100110101001011001111001010001010000011101001101111011100010

01110101011010000110001011110000100001010101111111111110111101

00011101111110110110000100011011010010111100110100001111000110

10011010101000101011001111001110111000111111101110101001001000

00101010111101000101110110000011110101010001001001001101101100

01111010101100111001001010110101111010101101011000011001100011

01111110010010100000100011101010001001000011101110011110000111

10111010110110101011111000101010011100101110100110010101011011

11010101101011111101001101111011011110100101110000101000001100

01010101101000111111010011100010010100001011100011101101100111

10000101101001101100011101001101011111100110001001100110001111

01001110110101111000110111011001100110101010011110100010001001

10010001110010000100111011100110110001111010010010110101001111

01111010101100001111000101101000110100110001011111100000010110

00110111010100110110000110000100001110000000111010111101111100

01100011110000101000000011011001010101100001010000111101001100

00101001101010011100001011111010011010111010010001011111000001

01111010000110001000000110111101010110100100101001010001110010

11101111010100011111011010001011101110110010010110100011010111

10011011111010001101110010111010010111101101000010010001101000

10101110000100010011111001110011001011000101100000010011101001

01000001110110110100010111010100011110111000111011001010011000

11000000100110111110111011011001000011111000011001101100101111

01111101000111011111100010000111001001000011000111110111001110

11011101010001011111000111011101110000111100001100100101110011

01000111010001000000110101001111100100111000101001010110111110

11010110110001001111100101101000011100001101010101011101100100

10111101101100110101000110111101011010011101000011111011011111

10101000110111111101000010110101100010100010100001001000111000

11100101001111001110011110111000100111111011101010101011111100

00001010110110001111011011110110011101100010110111111001000001

00101001000110001000000001010100010000101011101110010110100011

00011010010101010101101000100111011111000111111001111001000010

01010010101011000000010000100110000010011110100110101111110101

11101010111011101100101111010011010111010100111001000011101010

11010010001101011010011010110001000001110101010100111010101110

00110101110001101001011011010001010110001011011100100100101000

11111100001110110110111101111100010000111100101000101011001011

11100100111010111010001011100100011011011111110000011001100011

10011111110101010101111011100010011000110111001001111010001001

01000101101110000011100011100000100111101001000010011000011100

10101000110011110000111011010000101011001000010010110101011110

11101100000011001000001010111110001101010010100110111101100000

10010001000111101011001110001010101001001100111001111000001010

11101001001111111010011111110001001001100010010010101110010000

01111110100000000010101000111010101000001101011010001111101110

01100000100101010011110110010101001010111010000100101001000000

11101111000001111000101010100010001101001100010011000101000111

00111101011100010111010010010100100101110100011110001110011000

01011111011100001110100001110000101001001100111000110110100101

01101111110000101100001010110110000000100101100000011011010000

01110010111100001101001111010010101111000011000000010010111010

00010000110111110110100001001011110001010100010000100001110110

10100100100010100001001011011000010011011100000100001100110011

10101010010010001010100010011001111110100100110010101100100011

11101110001001101010000100101011000001010011111011011011010110

10111010101010100001010110001001001100111111010011010101000000

00011111000000011110110010100001010110110000111100010010000011

11100100011010111100011101001110110100001010101001010000001101

10110101110110101110101101111111010011001110000101010011101111

11111010001101101001010111100001001101101010000011100001101011

01010110111011100011001111101001001100100101101101110001010110

11100111011100101111110011100100101101111110011100101100101111

10000100101101011101011110111110011010111010001001000001101010

1101010111100110000000100110011111111010

### Vectors

October 25, 2010**Vectors, concretely, are arrows**, with a head and a tail. If two arrows share a tail, then you can measure the angle between them. The length of the arrow represents the magnitude of the vector.

The **modern abstract view** is much more interesting but let’s start at the beginning.

### Force vectors

Originally vectors were conceived as a **force applied at a point**.

As in, “That lawn ain’t mowing itself, boy. Now you git over there and apply a **continuous stream of vectors** to that lawnmower, before I apply a **high-magnitude vector** to your bee-hind!”

### Thanks Galileo, totally gonna get you back, man

The **Galilean idea** of splitting a point into its **x**-coordinate, **y**-coordinate and **z**-coordinate works with vectors as well. “**Apply a force** that totals 5 foot-pounds / second² in the **x** direction and 2 foot-pounds / second² in the **y** direction”, for instance.

Therefore, both points and vectors benefit from **adding more dimensions** to Galileo’s “coordinate system”. Add a **w** dimension, a **q** dimension, a **ξ** dimension — and **it’s up to you to determine** what those things **can mean**.

If a vector can be described as (5, 2, 0), then why not make a vector that’s (5, 2, 0, 1.1, 2.2, 19, 0, 0, 0, 3)? And so on.

### 4th Dimension Plus

So that’s how you get to 4-D vectors, 13-D vectors, and 11,929-D vectors. But the really interesting stuff comes from considering **∞-dimensional vectors**. That opens up** functional space**, and sooooo many things in life are functions.

(Interesting stuff also happens when you make vectors out of things that are not traditionally conceived to be “numbers”. Another post.)

## Abstractions

In the most general sense, vectors are ** things that can be added together**. The modern, abstract view includes as vectors:

- lists
- 1-D arrays
**bitstreams**- linear functionals
- force vectors
- personal preferences
- decisions
- desires
**the flow of heat**- dinosaur tracks
- tying a knot
- economic transactions
- a story or article, in any language
- a poem
- water flowing
- time series
- one instant during an argument
- a curve
- probabilities associated with various outcomes
**marketing data**- statistical observations
- bids and asks
- the quantum numbers of an atom
- waveforms
- signals
- songs
**heartbeats**- one solution of a differential equation
**a polynomial**- a jpeg or bitmap of the Mona Lisa
- a set of instructions
- a dance move
- someone’s signature
**a secret message**- a Taylor series
- a Fourier decomposition
- turning your mattress

(which you’re apparently supposed to do once a season) - intentions
- electromagnetic flux
- part of a trajectory
- one wisp of the wind
**states of affairs**- logical propositions
- distortions in a crystal lattice
- a rotation of Rubik’s cube
- neuronal spike-trains — so, thoughts? perceptions?
**colour**

### Things you can do with vectors

Given two vectors, you should be able to take their outer product or their inner product.

The inner product allows you to measure the **angle between two vectors**. If the inner product makes sense, then the space you are playing in has geometry. (Not all spaces have geometry — some just have topology.)

And — this is weird — if the concept of angle applies, then the concept of **length** applies as well. Don’t ask me why; the symbols just work that way.

### Magnitude

But the “length” of a song (one of my for-instances above) would not be something like 2:43. **The magnitude of a song vector** would be the total amount of energy in the sound wave / compression wave.

What is the angle between two songs, two spike-trains, two security prices? **What is the angle between two heartbeats?** It’s the correlation between them.

### Linear Algebra

Also, you can do **linear algebra** on vectors — provided they’re coming out of the same point. Some might say that the ability to do linear algebra on something is what makes a vector.

That can mean different things in different spaces — like maybe you’re **superposing wave-forms**, or maybe you’re **converting bitmap images to JPEG**. Or maybe you’re Photoshopping an existing JPEG. Oh, man, Photoshop is so math-y.

Shearing the mona lisa (linear algebra on an image — from the Wikipedia page on eigenvectors, one of which is the red arrow)

### October 25, 2010

I love this. In about seven minutes (5:00 to 12:00) he goes from Maxwell’s Laws, to lumped circuit elements, to simple circuits, to processors, to operating systems, to programming languages, to video games—also to toasters and spaceship control modules.