Archive for the ‘Math’ Category

Maxwell

Tuesday, April 17th, 2012

By far, the simplest explanation of Maxwell’s equations I’ve ever read is attached to Irregular Web Comic.

Show ▼

Units

Sunday, October 10th, 2010


[click for full size.]

Blind

Sunday, July 25th, 2010

So, my sister wants new blinds hung in her bedroom. Going by the Big Orange Box instructions, I measure top and bottom width (to check parallelism), diagonals (to check squareness), and height in the middle.

The openings are neither parallel nor square, although they’re not out by much; I’ve seen much worse.

I set about trying to find the widest blind that will fit in each opening. I can’t find an on-line calculator, and when I try to figure out an algorithm myself (while trying to chip the rust off my Python skills), it turns out to be surprisingly difficult. Any given case is straightforward, using Pythagoras, but there seems to be no general solution. And that’s assuming that the top and bottom are parallel and level.

I mention this at the dinner table.

“Why not just measure the old blinds?”

Good question, Mom. Good question.

I’m still piddling about with writing a calculator, just as an exercise. And I’d like to find an online calculator.

Note: the math might be a bit easier if you measure width of the opening top and bottom, length of both sides, true plumb height at both sides, and both diagonals. But I think you can do it with the usual top and bottom width, overall height (assume level), and the diags, and given that those are the measurements most window blinds sites ask for, that would be best.

Inputs and results to the nearest eighth of an inch, please. If you round, round down — a blind that is too large by the height of the drywall texturing, a sixteenth of an inch or less, will not work. Piss off with your sissy millimeters.

A command line calculator is fine by me, but it must work under Windows as well as Unix.

Frink: Tool for Thought

Friday, July 23rd, 2010

Frink is a calculator/programming language that keeps track of units. It also has a huge library of custom defined units to cover common calculations. For instance, the unit “water” stands for the density of water.

Here’s one of the example calculations from the documentation:

Fart Jokes

I received one of those endlessly-forwarded e-mails of dubious but “interesting facts” which said “if you fart continuously for 6 years and 9 months, you’ll have enough gas to create the equivalent of an atomic bomb.” Hee hee. Cute. (Thanks to Heather May Howard… being unable to easily calculate the veracity of this statement was one of the primary influences that showed how existing programs were too limited and inspired the creation of Frink.) But I didn’t believe it and wanted to check it. The Hiroshima bomb had a yield of 12.5 kilotons of TNT, which is a very small bomb by today’s standards. How many horsepower would that be?

12.5 kilotons TNT / (6 years + 9 months) -> horsepower
329.26013859711395

Can you produce a 329-horsepower blowtorch of a fart? I doubt it. That’s the power produced by a Corvette engine running just at its melting point. A one-second fart with that much power could blow me 1000 feet straight up. To produce that kind of energy, how much food would you have to eat a day?

12.5 kilotons TNT / (6 years + 9 months) -> Calories/day
5066811.55086559

Ummm… can you eat over 5 million Calories a day? (Again, note that these are food Calories with a capital ‘c’ which are equal to 1000 calories with a small ‘c’.) If you were a perfect fart factory, converting food energy into farts with 100% efficiency, and ate a normal 2000 Calories/day, how many years would it really take?

12.5 kilotons TNT / (2000 Calories/day) -> years
17100.488984171367

17,000 years is still a huge underestimate; I don’t know how much of your energy actually goes into fart production. Oh well. To continue the calculations, let’s guess your butthole has a diameter of 1 inch (no, you go measure it.) Let’s also guess that the gas you actually produce in a fart is only 1/10 as combustible as pure natural gas. What would be the velocity of the gas coming out?

12.5 kilotons TNT / natural_gas / (6 years + 9 months) / (pi (.5 in)^2) 10 -> mph
280.1590446203110

Nobody likes sitting next to a 280-mile-per-hour fart-machine. Lesson: Even the smallest atomic bombs are really unbelievably powerful and whoever originally calculated this isn’t any fun to be around if they really fart that much.

Fart jokes. Sheesh. If Frink isn’t a huge success, it’s not because I didn’t pander to the Lowest Common Denominator.

Frink is the 280-mile-per-hour fart-machine of calculators.

Frink makes it easy to think precisely.

Math Classs Needs A Makeover

Tuesday, June 8th, 2010

Dan Meyers:

Recall a time when you really loved something…and you recommended it wholeheartedly to someone you really love, …and the person hated it. …That is the… state in which I’ve spent the last six years. I teach high school math.

Watching this video caused me considerable agony.

I’ve spent the last, oh, seven or eight years tutoring one of my nieces in math. She finally graduated from high school last week, and I am getting some small part of the credit.

Problem: I know for a fact that almost none of my effort ended up inside her head. I helped her pass, but I didn’t know how to help her learn.

Here, Dan Meyer explains what I did wrong, and what I could have done instead.

Too late now, and my niece will be very very lucky if she finds a way to rewire the neural pathways I helped tangle.

Gah.

Not entirely my fault; one problem I ran into consistently was that my vocabulary for talking about math, which in my experience is the one in use by people who actually use math, has been deprecated in primary and secondary education in favor of a bunch of touchy feely crap.

Along the same lines, whenever my niece learned a temporary heuristic, she clung to it fiercely, refusing to move on to a more efficient, more general technique. For instance, in school she learned to do multiplication with grids of boxes. It was years before she moved on to simply working the problem with numbers, and I think to this day she doesn’t really understand why the numbers work.

Then there were multiple choice math exams. Read that again: multiple choice math exams. My niece got very good at working the problem backwards, discarding the bad answers to get the right one.

And finally: Fucking. Graphing. Calculators. If I had my way, any teacher who allows any kind of calculator in the classroom or with homework before, oh, trigonometry, deserves to be fired with no pension, and possibly put on the child abuse registry. I am not remotely kidding. Horribly crippling. It was like watching someone with a sore ankle being confined to a wheelchair in third grade instead of being given proper exercise, and watching their legs wither over the next nine years.

In eleventh grade, the text book was teaching matrix calculations because there was a specific algorithm programmed into the preferred calculator (a TI something or other). No understanding of matrices required, none at all. Hell, I don’t understand them, not really, and although teaching her tweaked my own understanding of just about everything else, the presentation in this chapter did nothing even for me.

The Philosophical Scrivener Passes

Saturday, May 22nd, 2010

Martin Gardner, who taught me to enjoy mathematical ideas as best I can, has died.

Delighted skeptic that he was, I remember reading once that he believed in our immortal souls because he couldn’t believe that so wonderful thing as the human mind was disposable. I think he was wrong, but in his case, I hope he was right.

If he is, he’s excited, I’m sure, pleased, and looking forward to learning even more. And, of course, he is already explaining it all to anyone who will listen, and everybody does, because he’s so much fun to listen to.

The world is a better, happier, more interesting place for his having been in it.

Gödel Summarized

Sunday, March 21st, 2010

Here’s your Sunday Morning Brain Stretcher: Gödel’s Incompleteness Theorem for Dummies.

  1. Someone introduces Gödel to a UTM, a machine that is supposed to be a Universal Truth Machine, capable of correctly answering any question at all.
  2. Gödel asks for the program and the circuit design of the UTM. The program may be complicated, but it can only be finitely long. Call the program P(UTM) for Program of the Universal Truth Machine.
  3. Smiling a little, Gödel writes out the following sentence: “The machine constructed on the basis of the program P(UTM) will never say that this sentence is true.” Call this sentence G for Gödel. Note that G is equivalent to: “UTM will never say G is true.”
  4. Now Gödel laughs his high laugh and asks UTM whether G is true or not.
  5. If UTM says G is true, then “UTM will never say G is true” is false. If “UTM will never say G is true” is false, then G is false (since G = “UTM will never say G is true”). So if UTM says G is true, then G is in fact false, and UTM has made a false statement. So UTM will never say that G is true, since UTM makes only true statements.
  6. We have established that UTM will never say G is true. So “UTM will never say G is true” is in fact a true statement. So G is true (since G = “UTM will never say G is true”).
  7. “I know a truth that UTM can never utter,” Gödel says. “I know that G is true. UTM is not truly universal.”

Mandelbulb

Wednesday, November 11th, 2009

This is going to be all over blogs, desktops, calenders, and, I hope, 3D-modeling machines within a week. Gods, I’m looking forward to this as a source of architectural motifs.

Ladies and Gentlemen, the [possibly]Real 3-D Mandelbrot Set:
Mandelbulb-Power8side-small-450w-j20
[Click for larger. Wallpapers, animations, math, and more at the original site.]

“So The Cosmos Can Know Itself”

Tuesday, November 10th, 2009

I have not much to say about this, except: Beauty.

Via The Anchoress. Thank you, Ma’am. Thank you very much.

No, wait, I do have a couple of things to say:

The story of cosmology and evolution is the story told by the Stars and Stones, Cells and Bones. It is all one story, and its great power and beauty is that it shows us what Gregory Bateson called “The Pattern That Connects”.

We are not special, we are part and parcel of the Universe, a link in a chain of existence going back to the Bright Beginning.

We are Star Stuff, and we are all one with each other, with all life, with every thing.

“Thou Art God” — Robert Heinlein

I also left a couple of comments at the Anchoress’ site.

Lyrics [from The Symphony of Science website] below the fold:
(more…)

Scale

Friday, March 20th, 2009

Every once in a while, xkcd says something important.
xkcd_1000_times

Hey, Newspaper Dinosaurs? When you are getting schooled by a two-panel stick-figured web comic, you are doomed. This is your meteor, and you called it down on yourselves.

Hm, just checking: thirty seconds times a thousand is thirty thousand seconds. That’s about eight hours. No surprise, Munroe actually did his math.