Archive for the 'Math' Category

(cons calculus (cdr ‘(eating is fun)))

Last night I spent an hour or so working through Calculus and Pizza: A Cookbook for the Hungry Mind. While I don’t care so much for all the pizza/food stuff (extra fluff that gets in the way of what I’m after), the math is good. I’ve relearned how to do derivatives, find local minima and maxima, use the chain rule and extended power rule, and so on. Still haven’t gotten to integrals yet, though. The calculus is pretty easy, I must admit; the only thing that keeps hanging me up is the algebra. Most of the algebra is a piece of cake, of course, but there are little bits and pieces here and there that I keep forgetting. But it’s coming back.

After that, I picked up The Little Schemer and spent a most enjoyable two hours working through the first 80 pages. At first I didn’t intend to actually write all of the little functions you’re expected to write, but I’m glad I did. And to my small surprise, I was able to write all of them without too much trouble. We’re talking functions like +, -, >, and < , folks. Simple stuff. It’s like writing the language from scratch yourself. (Yes, I know there’s more truth to that than there may seem at first. :))

The coolest thing is learning how to solve problems recursively rather than iteratively. Sure, some of this stuff would be far easier using a for loop, but using recursion like this means no side effects (at least if I understand correctly), and that’s sweet. I can’t wait to finish the rest of the book and move on to The Seasoned Schemer. (And I’ll be glad when we move on to higher-level programs, too.)

Oh, the parentheses in Scheme don’t bother me at all — in fact, I rather like them. :)

Proofs and stuff

I read Stevey’s Math Every Day post, and darn it all, I need to start brushing up on my math! It’s been ages since I studied it (five years, to be precise), and while a fair amount is still with me (like addition and subtraction ;)), it’d be nice to re-master everything I once knew. And then I’ll be able to start learning all the really cool stuff in math. Mmm.

Problem is, I’m not quite sure how to go about doing it. Pick up a textbook and work through the problems, one by one? Find some other kind of math book? Wikipedia? MathWorld? I don’t know. I’m not even exactly sure what order I should study things in. I do know that calculus was last, though. :)

I think I’m going to do what Stevey did — “math every day.” Ten minutes a day will be good for starters, and on days when I have the time, I’ll be able to do more. Mmm, I miss math.