March 08, 2010

Solid Geometry

Three dimensional solid geometry has nearly been written out of the American mathematical curriculum. Yet my middle-school math team is approaching the last and most difficult math meet of the year where, among other things, they are expected to know basic solid geometry.

So for the 3d-unaware student I have put together a super-compressed introduction to the basics of middle-school solid geometry, with a high level of challenge for intended for math team middle schoolers who are trying to learn everything they need to know in a week. The packet here has only 4 pages and 27 problems, with an extra 6 pages for solutions to check after you are done. The easy bits are skipped, and in exchange you get to see some common types of tricks as well as a hint of insight beyond basic prisms, pyramids, cones and spheres.

Here it is: Solid Geometry Facts and 33 Problems and solutions.


Posted by David at 01:10 AM | Comments (0)

March 04, 2010

Teaching is Hard

I coach a middle-school math team of 5th-8th graders, and I have learned that teaching is hard. My kids are all good kids, but after a long day at school, the girls want to chit chat and the boys want to wrestle. When it comes to learning hard math, the whizzes like to dominate the discussion, and the kids who are getting lost would prefer to literally hide under their desk.

Sometimes math team practices are disastrous, and I just want to let all my wild gazelles outside to play in the sun. And yet other times the classroom is exciting and magical and packed with learning, with the kids buzzing about primes or permutations by the end of the hour. It's not just the people in the room: we are the same every week.

But every week is different. What is happening?

Continue reading "Teaching is Hard"
Posted by David at 09:53 AM | Comments (0)

February 12, 2010

A Mathematical Notation Question

Quickly simplify the following expression: and show your work.

Solution:

Real solution:

The real question is, how the heck do you write all that notation in HTML? This problem is the bane of math teachers everywhere. But I did it here in about 5 minutes using a wonderful new tool that was released yesterday. Here is how.

The solution is to use mimeTeX notation via the brand-new version of the Google Chart Server. You can use the mathematical notation editor I have posted here - it will interpolate formulas within $dollar signs$ into HTML, generate the right <img> tags, and help insert css styles based on the image heights to get your vertical-alignment approximately right.

It helps if you know TeX syntax ahead of time, but even if you don't, it's not hard to learn what you need. When you go to davidbau.com/formula, it starts you off with a simple example.

Copy and paste your HTML.   QED.

Posted by David at 02:36 PM | Comments (1)

February 09, 2010

Second Coming of Wyden-Bennett?

Republicans, preparing for Obama's Healthcare Summit, clearly want to avoid looking as foolish as they did when hosting Obama at their House issues summit. "Start over," seems to be the new mantra.

GOP proposals for preconditions before talks just make them look like ridiculous Iranian nuclear negotiators; if Republicans continue on this path, they are playing into Democratic strategies and providing political cover for Democrats to pass healthcare by reconciliation next month.

Democrats look serious, and Republicans look like Ahmadinejad. Any good hawk knows that in that situation, stiff and swift sanctions are justified.

Continue reading "Second Coming of Wyden-Bennett?"
Posted by David at 06:56 AM | Comments (1)

February 01, 2010

Reading JQuery Sources

JQuery has become the stdlib of Javascript. After reading the jQuery docs, the next level of understanding comes from reading the code.

Here is an excellent new tool for reading the jQuery source, thanks to James Padolsey.

Food for Thought: International jQuery Use

On going back and looking at the top regions in which 'jquery' is a topic of Google searches, I find it interesting - and maybe worrying for U.S. internet innovators - that none of the top 6 jQuery cities of the world are in the U.S...

Continue reading "Reading JQuery Sources"
Posted by David at 07:23 AM | Comments (0)

January 30, 2010

Random Seeds, Coded Hints, and Quintillions

Here is a seedable random number generator in Javascript that you can set up to produce a determinstic sequence of pseudorandom numbers. Browsers do not provide a built-in way to seed Math.random(), so this solution is handy both when you need a repeatable pseudorandom sequence that is completely predictable, and when you need a robust seed that is much more unpredictable than your browser's built-in random number generator.

Many games that use weak random number generators have been cracked by exploiting their lack of randomness, and recently it has even been shown that it is possible to guess your 'random' Social Security Number given information about the time and location of your birth. To resist this type of attack, you want do better than a linear congruential PRNG seeded with the current time. Explanations below.

A Math.seedrandom Function

This script defines a function Math.seedrandom() that replaces Math.random with a seeded sequence of your choice. You use it by including seedrandom.js and then calling

Math.seedrandom('any string you like');

Next time you call Math.random(), you will get a deterministic sequence of results that can be reproduced at any time on any browser by calling seedrandom with the same string (with the example seed above, you will always get 0.4514661562021821, 0.06749172707294095, 0.8393296727715214, etc).

Seed:

The code uses RC4 as the pseudorandom number generator, so the randomness is a bit better than what you get from most browsers' built-in Math.random. But since it does all the computation in javascript, it is also is 3-10x slower.

A minified version of seedrandom.js (using the Google Closure Compiler) is less than 1K.

The code also supports automatic seeding...

Continue reading "Random Seeds, Coded Hints, and Quintillions"
Posted by David at 08:06 PM | Comments (1)

January 24, 2010

Xinhua: We Report, You Decide

Does reading the Chinese press remind you of watching Fox News?

There is a whole world outside China and outside Fox News that is starkly different and a bit closer to reality.

But when you realize that Fox is actually the most trusted news brand in the U.S. today, you can get an appreciation for the success that a censored Chinese media can have inside the world's largest society. The effects of squashing dissent in the name of nationalism are not "very limited"...


Posted by David at 09:49 AM | Comments (1)

January 19, 2010

My God, What Have We Done?

Fellow Massachusetts voters! What was the point in electing Brown?

Continue reading "My God, What Have We Done?"
Posted by David at 09:57 PM | Comments (3)

January 18, 2010

Campaign Calls

We've gotten three calls from the Scott Brown campaign in the last 24 hours, two of them late at night. The GOP smells blood in the water.

But everybody around here is a Democrat!


Posted by David at 12:10 PM | Comments (1)

January 17, 2010

Vote

My wife was originally not going to bother voting in Tuesday's special election for Senate, since we live in deepest of the deep blue states.

But it's turning out to be a nailbiter, so she's going to vote after all.

Go vote.


Posted by David at 07:38 AM | Comments (0)

January 16, 2010

Ballmer Favors Torture for Lawyers

After a series of Chinese lawyers have been imprisoned and tortured and "gone missing" for speaking up for their clients in China, our friend Steve Ballmer still "doesn't understand" why Google is upset about break-ins into Chinese lawyers email accounts. "I don’t think there was anything unusual," he says.

Perhaps torture of lawyers is routine at Microsoft; it is a bit unusual at Google.


Posted by David at 12:18 PM | Comments (0)

January 15, 2010

Anagram

A puzzle!

Rearrange the letters SEARCH ENGINE to make a phrase representing the displeasure of a nation.

h/t Rachel Grey


Posted by David at 11:38 AM | Comments (6)

Calendar
March 2010
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Search

Archives
Recent Entries
Solid Geometry
Teaching is Hard
A Mathematical Notation Question
Second Coming of Wyden-Bennett?
Reading JQuery Sources
Random Seeds, Coded Hints, and Quintillions
Xinhua: We Report, You Decide
My God, What Have We Done?
Campaign Calls
Vote
Ballmer Favors Torture for Lawyers
Anagram
Flawed Security
Google and China
Pointless Arbitrage
Mandelbrot
Bravo for Courier
What's in the Box
Coin Flips Are Biased
Javascript Reversi
Time To Build A Treehouse
Free Market Healthcare
Niagara Restaurants
Law vs Power
Weiner Goes to Washington
Where I Learned Programming
Disorderly Conduct
Dear Losers
McCain/Lieberman
Easy Math Typesetting
The Small Government Paradox
The 3.6% Accident
What is a Floppy Disk?
Two Steps Behind
Politics is Important
Your Compiler Vanishes in A Puff of Logic
Elastic Shortfalls
Poetry and Prose
Death and Taxes
Geithner's China Triumph
COP and the IMF Playbook
How To Nationalize
A Cultural Problem
Obama to the World: Join Us
What is a Stress Test?
How Big Is It?
Helicopters Arrive Under Cover Of AIG Testimony
Clever Outrage
Processing
Congressional Team Building
The Bossy R
Bulls Enter China Shop
American Majesty
No Deceit Here
Winning at Chess
Transition in Cyberspace
Elizabeth Warren
Continued Fractions
Rationals are Nonobvious
Yellowstone Swarm
RMB in the NYT
In Spending We Trust
Foreign Affairs on China
Junichiro Obama
Helicopters Take Off
Amazing Transparency
A Reflective Phobia
Trade Deficit Arithmetic
Perfect Numbers
Taxman Game
Mapping Out a Trade War
Currency Disaster
The Chinese Depression
Sudoku Help
Second Grade Spelling
Waiting For Doc
Twenty Eight Hours
What Do You Call It?
Rahm Emanuel
A Fourth Republic
Helicopters and Imports
An Historic Day
Chomp
The 144 Game
Klein on Obama
I Blame Markowitz
Time for Japan to Buy
Republican Rebels
Pictoral Subtraction
McCain and Obama at Al Smith
What After November 4?
Where Is The Excess Capital?
Quick, Get a Mortgage
World's Toughest Job
What's Scaring People
The U.S. Needs a King
Dear Nancy Pelosi
A Sensible Proposal
Do-Nothing Republicans
Letterman's Best Non-Guest
Links
Older Writing
About