Friday, June 20, 2014

Theme Thursday: Sport?

Boogie at the UCT Ballroom and Latin Dancing Society

Cari at Clan Donaldson runs the Theme Thursday linkup, and since she says there are no rules, I will persist in joining in erratically, even when I'm not really in the target audience. Also I will post-process the heck out of mediocre pictures until I can convince myself that they're arty. And claim that the social dancing when Ballroom lessons are cancelled for the holiday is a sport. (Actually, looking at what other people have linked, this last might be on-trend.)
Straight off the camera cellphone

 If I go to black and white, I can convert the motion blur to graininess (yay, unsharp mask) and call it a feature, yes? It was fun to play with, at any rate; and a fun evening to remember. So perhaps I can file this under "further perks of [still] being a student". It fits somewhere below "Science is cooool" and above "No, actually, I don't get to take the university holiday off. I need to learn everything about everything before my funding runs out."

 
Savo 'lass a lalaith.

Tuesday, June 17, 2014

Of spin and other nonsense


From the Oxford English Dictionary:

spin:

noun 1 A rapid turning or whirling motion
 ...
1.4 Physics The intrinsic angular momentum of a subatomic particle.
...
noun 3 [in singular] The presentation of information in a particular way; a slant, especially a favourable one

I was going to write something about covering groups, which I've been reading about today, but one of the applications of covering groups in theoretical physics is in linking quantum spin to rotations. Spin is fascinating and weird. I got sidetracked.

I suspect that spin is not really all that weird, if one thinks about it properly. But in the process of discovering what exactly holds the world together, one doesn't always come across ideas in contexts that make it easy to think about them properly. Such is the case with (quantum) spin, which, despite the name, does not involve any rapid twirling or whirling motions. In fact, all the talk about twirling and whirling could probably be classified as spin in the third sense "presentation of information in a particular way; a slant, especially a favourable one" (but not necessarily an accurate one).

Spin is just a property of a particle (I'll disagree with the OED on its technically needing to be a subatomic particle, but admittedly that's overwhelmingly the context where we talk about spin.) It's easy enough to imagine a particle having a position. It can have a mass, which we tend to think about in terms of how much it weighs -- although the ideas aren't quite the same. We're happy to think about a particle having a speed. Other things are harder to imagine.

We know that there's a thing called electric charge. It's what makes lightbulbs shine and computers compute. It's the reason you can rub a plastic ruler on your head and use it to pick up scraps of paper; and the cause of thunder and lightning. It certainly seems to exist. But what exactly is it? Well, it's electric charge. If we describe it as being like something easier to imagine then we're describing it as being something different from itself.
 
There's another thing called spin. People sometimes try to describe it as whirling and twirling, because that's easy to imagine and the context in which it was first noticed. In fact, it can be linked very closely -- but not identically -- to the idea of rotations using the mathematics of covering groups. However, spin is not about twirling and whirling, so we end up describing it as something other than itself when we take that route. It tends not to end well.

Low-pressure sodium lamp 700-350nm widened
There are two yellow lines in the sodium spectrum, not just one.

Spin is a thing that means splitting the light from a sodium lamp with a prism produces two yellow lines, instead of just one. There's a yellow line for each kind of spin. Spin is the thing that means if you fire a stream of particles into a magnetic field, some will go up and some will go down. It means electron energies are arranged twice as efficiently as you might expect. Like electric charge, spin has noticeable effects. Even if we can't exactly imagine it, it makes sense to talk about it.

That's where the maths comes in handy, of course -- it gives us a way to talk about things like spin, even when we don't have a convenient way to imagine what they 'actually' are.

Savo 'lass a lalaith.

Wednesday, June 11, 2014

I should be debugging

, but the server's down and sometimes it's good to step off the hamster wheel. I think. Maybe. It's okay to step off the hamster wheel, right? Are we allowed to admit that there is a hamster wheel?

I'm not complaining, mind you. I love my work. Really, laugh-out-loud, love theoretical physics and seeing how ridiculously, beautifully abstract mathematics can describe the real world and how things actually happen. I love C++ debugging somewhat less, but I can accept that it's part of the package. Which isn't to say it's not a bit of a hamster wheel.

On Saturday at a workshop on science communication I told an auditoriumful of people that I was infatuated with Grassman algebras. That isn't a hamster wheel. It's something to remember and savour. It's a reason to get on the hamster wheel when the wheel needs to be turned, even if I don't seem to be going anywhere.

Grassman algebras are very neat. See, ordinary numbers commute. That means you get equations like

ab - ba = 0
which is to say

ab = ba.
Five times three is the same as three times five, and for most of the things we want to use maths for, that's awfully convenient. If I switch the length and breadth of a room, I don't want the area to change! But sometimes switching things around does change things. Putting on my shoes and then my socks is not the same as putting on my socks and then my shoes.

It turns out that in particle physics there's a family of particles -- called fermions -- that behave like this. If fermion the first and fermion the second are identical (for instance, they might both be electrons), it still matters which order I put them in. No, that's not intuitive, but it does seem to be the way nature works. If I switch fermion one and fermion two, so that instead I'm looking at fermion two and fermion one, the mathematics I'm using needs to have a minus sign attached. And that's where Grassman numbers (the things you use in Grassman algebras) come in. Grassman numbers don't commute, they anticommute:

ab + ba = 0 

which is to say

ab = -ba.

In fact, Grassman numbers behave just the way fermions seem to. That means that while I might describe the length and breadth of a room using ordinary ("real") numbers, it's more convenient to describe fermions using Grassman numbers. I have to modify the rules of maths slightly to make sure that they anticommute, but otherwise I can carry on just as before. The kind of number I'm using does most of the work and I don't have to keep accounting for the odd behaviour of fermions. The fact that they do strange things when you swap them around is built in.

 I think that's pretty. Just about pretty enough that I might muster the willpower to go and ask C++ why it insists that the solution to my equation is infinity. (The solution is not infinity. Unless I've given it the wrong equation. Or the wrong method for solving the equation. Or I accidentally typed +∞ before printing the answer. Maybe I'll go check that last one.)
-----
Savo 'lass a lalaith.

Monday, March 3, 2014

Patterns

 Some correlations without much thought on the mechanisms behind them. Things I've noticed. 


Three participants at the Cape Town heats of the FameLab science communication competition prepared their talks for both regional rounds before the day. (The others prepared the second talk during lunch break.)
//
The same three participants were the three sent through to the national stages.

(Did they [we] do better because they [we] were more prepared, is there something that affects both or is it just chance?)


Researchers are evaluated not by what they understand (which is hardly measurable), but by "research output" or publications.
//
Students are told that it's more important to understand the topic than to worry about the grades.

(This is partly to do with what we can measure and partly to do with how we look at things and definitely a question that goes much deeper than what I've written here.)





If I get to  bed early, I'm much more capable of being productive in my work the next day.
//
A lot of fun-sounding events are run in the late evening.
//
There's a stereotype about scientists not having social lives.

(Even the most obvious way of linking these doesn't involve social awkwardness. One might argue that it implies it, I suppose.)


Mathematica is probably* the most expensive and widely-used symbolic programming language out there.
//
It also has the best pattern matching capabilities.*

(My supervisor likes to point out that, even so, it's a terrible stand-in for your brain.)



*I've heard so and it sounds plausible, but I haven't looked it up for myself.

Wednesday, February 12, 2014

What exactly counts as open?

I'm currently writing a paper for a journal that accepts submissions only in .doc format. That doesn't sound like a problem – everyone uses Microsoft office anyway, right? Well, no, I don't. Because MS Office doesn't run under Linux, which I'm using. And even if it did, there are places I'd prefer to throw my resources, given a choice. But aren't there open source alternatives that can produce those files? Well – kind of. LibreOffice will produce a .doc file alright. And if it contains straightforwardly formatted text with the occasional picture, MS Word would handle that file fine. However. I need equations. And while both LibreOffice and MS Word have equation editor functions, they're not entirely compatible. Nor are they particularly fun to use. Why can't I just use LaTeX?

Well, okay, I know why I can't. It's a general science journal, and unless you're doing fairly mathematical science, the LaTeX learning curve may not seem or be worth the (relative) ease of use. (And, I suppose, not allowing LaTeX forces me to consider if I really need to include that obscure equation in the paper.) LaTeX documents are not, for most people, as easy to read and edit as is a .doc file. It is free, though. Which MS Word is not.

It raises an interesting question about which method is really more "open". Requiring Microsoft formats means I need to buy – or, more realistically, borrow – an expensive piece of software to contribute to the journal. Requiring LaTeX formats forces contributors to pick up a non-trivial skill set before submitting. Neither of these is really entirely open. Perhaps simply offering a choice of format would be a reasonable workaround, although it does still feel like a workaround. Improving the compatibility of LibreOffice (or other open source office suites) with MS Office, while far beyond the reach of the journal, might be a slightly better fix. I think that will happen, but not until long after I've written this paper!

In the meantime, I'll be sulking in the corner because a side effect of using an office suite format is that I can't work in vi.

Friday, May 17, 2013

Friday Five

1. It's Sir-Laughs-a-Lots' birthday tomorrow. (Happy birthday!) We're going to do silly celebratory student things. No, not that kind. The kind where you realise you have the reading comprehension of a grad student and a pile of children's books and what are you waiting for? Yay.

2. Today I wrote my last test of semester, and our lectures are finished. Exams are looming only in a manageable couple of weeks, so tomorrow we're going to do silly celebratory student things . . .

3. The test I wrote today may be the last maths test I ever write. (I take all my courses from the physics department next semester, and if I'm lucky that could be the end of coursework.) It's kinda weird.

4. Do I sound like Hermione Granger if I say I want an analysis textbook for bedtime reading? We've touched on functional analysis in this PDE course and while I don't feel much need to do the proofs myself (though it would be fuuuuuun), but I think it's be interesting, useful and, relevantly, doable to get a sense of the terminology and what the results actually are. Maybe I could find an analysis for physicists book. Hmm.

5. Although while I don't want a full-of-detailed-proofs book, I kind of want a rigourous one. We can pretend that makes sense, right? It's like, I was talking to one of my lecturers about an applied physics course and he said "Well, for a pure mathematician like yourself [. . .]" Now, I'm certainly not much of a pure mathematician if I haven't even read much analysis (I do know a very little), but I guess I'm pickier than most about maths being done properly. As it should be.

And there's today's allocation of nerdery. If you know of a readable introductory source on analysis, I'd love to know, though I don't promise I'll actually get to reading it.

Savo 'lass a lalaith.

Thursday, May 16, 2013

Book Logs: Children's Fantasy

I finished two children's fantasy classic-y things recently, and thought I'd write about them together, although it probably won't turn out to be dreadfully matchy.

The Magician's Nephew by C. S. Lewis

Sir Laughs-a-lot and I have been working our way through the Narnia books together, although the order has got a little muddled (we did at least start with The Lion, the Witch and the Wardrobe). His childhood, unlike mine, was not filled with rereading the Narnia books over and over and over (they're short - I could get through a couple in an afternoon) which meant we came at it from quite different perspectives. He wanted to know what would happen next and was surprised by the surprising bits. I was bundled up in a sort of anticipation that's almost worse than suspense. Which is not to say that I didn't enjoy it - but I think reading aloud and reading together made it more obvious how much my mind was other places in the story than what we were actually reading. It takes a bit more effort to relax into the moment than otherwise, perhaps. Having said that, if I haven't read a book, I spend a fair bit of brainpower on second guessing what'll happen next, so maybe that's just me.

I think I have read the book too many times to write a brief impression post without being either dreadfully specific or taking more time away from my mathematics than is quite wise. I think it may be my favourite of the Narnia books, though we'll see as we read further!

Redwall by Brian Jacques

This is also a book that I first read as a kid, but I can't say I'm nearly as nostalgic about it. I read it because I needed a light read and it was on my Kindle app from months ago when Amazon had been offering it free. I enjoyed reading it and was drawn into the story, but I remain a little bemused as to why people get so very emotional over the series.

The setting - an abbey of mice sheltering various woodlan creatures, attacked by a horde of evil rats - is admittedly quite awesome. In "On Fairy Tales" (I think!) Tolkien draws a distinction between fantasies involving talking animals and "beast tales", which are essentially stories about everyday life, acted out by animals. (He points out that this allows for rather harsher points against some animals than wemight be comfortable with against actual people.) Redwall certainly has elements of that. But it has ancient prophecies and legendary sword and visions in dreams too, which seem to make it fantasy anyway. The combination works well. I will freely admit to spending chunks of time reading Redwall cookbooks and otherwise revelling in the setting.

I think what bothers me about the book is what I'm tempted to call Heaviside character development. In maths, a Heaviside function is zero up to a certain point, and one everywhere after that. It's not continuous. A lot of character development in Redwall feels to me - I think, maybe - like a series of Heaviside functions. Matthias is a bumbling Redwall novice. Oh no, Cluny the Scourge is coming! Level him up to inexperienced warrior, quick! It's not implausible that the change would happen - the change is a big part of a good story, for me - but I'd have liked to see a bit more of the internal turmoil and growth and not just a Heaviside archetype function. The plot felt a little like that too - different elements didn't always seem like consequences of what had gone before. They just kinda happened.

That said, I definitely enjoyed reading the book. I would certainly be less nitpicky if I didn't know other people adored the series. I liked the book (and the rest of the series), but I think it gets a bit too Heaviside-ish (and perhaps formulaic) for my liking.