Tour de France Day 1

It’s day 1 of the Tour de France. Starting with a short individual team time trial (6.1 km) in Liege Belgium. Looks to be a simple out and back course. Fastest cyclist at the moment is Pereiro at 7:01.39, givng him an average speed of 52.1 kph. They’re really cruising. I can only manage speeds like that for short bursts.

Today’s OLN word of the day is CYCLYSM.

Modelling a radionuclide generator in Excel

We’ve been teaching our first year (second year now) residents about nuclear medicine physics, and one of the topics we’ve covered is producing radionuclides for medical use. So I’m trying to whip up a spreadsheet that will model the activity of a typical Mo-Tc radionuclide generator to show off transient equilibrium and what happens when the generator is eluted.

Modelling the Mo/Tc activity in the generator is easy. What I’m finding a little more difficult is including the effects of generator elution where some of the Tc activity is removed from the generator. I’m thinking if I can reformulate the transient equilibrium equation as a recursive equation that looks something like A(t+dt) = f(A(t)) then I can get it to work. Spreadsheets are good at dealing with recursive equations. Should be simple.

So let’s start with the Bateman equation (need to learn some MathML). For a 2 radionuclide (parent/daughter) setup, it looks like

Ad(t) = Ap(0)(λd/(λdp))(exp(-λpt)-exp(-λdt)) + Ad(0)exp(-λdt)

Now, it’s a fairly simple exercise to show that when transient equilibrium is established, the recursive equation has the form

Ad(t+1) = Ad(t)exp(-λp)

But, when the generator is eluted, transient equilibrium no longer exists, and we need to go back to the Bateman equation to determine the daughter activity.
So, supposing that at time t=0, we have no initial daughter activity. Our equation looks like

Ad(0) = Ap(0)(λd/(λdp))

And at time t=1, we have

Ad(1) = Ap(0)(λd/(λdp))(exp(-λp)-exp(-λd))

At time t=2,

Ad(1) = Ap(0)(λd/(λdp))(exp(-2λp)-exp(-2λd))

Already we can see that the term containing the difference of exponentials

exp(-λp)-exp(-λd)

is going to cause a lot of grief. A recursive Bateman equation may not be possible. I may have to come up with another way to do my spreadsheet.

MathML test

Just checking to see if MathML is usable inside this weblog with my browsers at all.

a + b 260 + a + b i

a + b 2

x 2 + 4 ⁢ x + 4 = 0

x = b ± b 2 4 ⁢ a ⁢ c 2 ⁢ a

0 1 0 0 0 1 1 0 0

1729

Rats, well that didn’t work too well, did it.

Not quite sure I understand what’s going on here. According to the sample pages it should mostly work with Firefox, Mozilla and IE6. Not sure why the examples above don’t work. I must be doing something wrong…

Ugh, mail spam

Either spammers are getting better at constructing their messages to evade filters, are just spamming more or Earthlink’s Spamblocker has been seriously sucking lately because the amount of spam making it through to my inbox has at least doubled over the past few days.
Normally I’d just see 7-10 messages a day in the junk mailbox when I check my mail in the morning and usually none throughout the day, but lately it’s been more like 20-30 messages in the morning and a relatively steady stream of 2-3/hour throughout the rest of the day.
That said, Spamblocker is still great. What gets through is probably about a tenth of what gets intercepted. And what does get through gets tagged by POPFile and sent to the trash by my Eudora filters so I never have to dirty my eyeballs looking at it.
So hah! Take that spammers!

I just want to get some sleep

Anybody who’s married will tell you that there are times where their spouse wakes them up in the middle of the night. Maybe it’s a jab to the side or a kick to the leg while they’re sleeping, or nights they can’t sleep so you shouldn’t be able to either. Or they get up to pee and can’t get back to sleep. Sometimes it’s for good reason. Other times there’s just no reason at all.
I wonder how many of them get woken up by a wet finger in the ear.
Yes, at 2 this morning, I woke up from my peaceful slumber to my wife sticking a finger in my ear. Not just any finger, but a wet one. And it wasn’t just moist either. It was a wet, drippy slobbery (at least I hope it was just slobbery) finger being swirled around in my ear.
My wife woke me up with a wet willie this morning. And I can tell you, it is a rather shocking way to wake up.