Happenings – 2010 July 31

As you can see, the projectiles post went out last weekend… well, last Monday evening, when technical posts usually go out. In a way, I’m sorry to have used my reserve post so quickly, and yet that is what it was for: to let me do mathematics almost all weekend.

I picked up quaternions as soon as I finished the diary post last Saturday… and I never put them down again, until I had finished what I set out to do.

And what was that? The newsgroup post I had seen triggered something: I decided that the easy way to find an Euler angle decomposition of a matrix was to use its quaternion representation rather than the matrix itself.

I was right. Of course, I didn’t know that until I had actually worked it out.

I expect that I will be writing a couple of posts about (3D) rotations. First, a rotation can be represented by a matrix, by its angle and axis of rotation, by a quaternion, and by Euler angles. Second, I wanted to be able to move between all four of those representations.

I spent a lot of time last weekend telling Mathematica® exactly what I wanted to do. And, all too aften, discovering that I didn’t really want to do that.

But we’ll start slowly. The first post in this set will be an introductory description of quaternions. Among other things, that will let me keep testing my code, refining it if necessary. (Actually, I already want to change three things.)

The second post will probably discuss rotations per se, and their representation by quaternions.

The third post will show how to move between the four representations.

On the other hand, I haven’t decided what I’ll do this weekend after I get the introductory quaternions post written.

But, as usual, we’ll see how it turns out.

Oh, this blog reached another milestone this morning: WordPress has now caught more than 10,000 spam comments. Good job.

Mechanics: simple projectile motion – 1

introduction

Since I’ve been playing with simple projectile motion recently, I thought I would write it up and post it.

In fact, there will be two posts: the first will not require calculus, but the second post will.

This is far from high-powered mathematics… but I enjoyed it.

We do this modeling in a very simple universe:

  • the Earth is flat;
  • gravity is constant;
  • there is no atmosphere (to be specific, no air resistance);
  • and the earth doesn’t rotate (it’s an inertial system, and the ground isn’t moving while the projectile is in the air).

My coordinate system is the usual xy-plane: x is horizontal, y is vertical, the acceleration of gravity is in the negative y direction.

Read the rest of this entry »

Happenings – 2010 July 24

My mathematical life is getting a little more varied. As I get to the point of finally being able to compute with Boolean equations, my sense of urgency abates, and I can look at other topics.

Eliminating a variable from a set of logical equations turns out to be very easy… and this means that I can now solve Lewis Carroll’s “sorities” puzzles.

A sority appears to be a collection of premises in which some two variables each appear only once. (Edit: all the other variables occur exactly twice each.) In principle – and in practice, too, but there’s an easier way – one simply picks two premises with one common variable… treats that common variable as the middle term… and obtains their conclusion. Where we might have had seven premises in… what, 8 variables?… now we have six premises in 7 variables. Keep going.

(I think I’m counting correctly, but the exact numbers aren’t important. What matters is that while the process terminates, it is slow, eliminating two of the original premises while adding a new one.)

In practice, however, it is possible to eliminate all of the repeated variables at once.

In either case, we end up with a statement relating the two non-repeated variables. That’s the answer to the puzzle.

Running through his puzzles is fun, and it was one of the hoped-for results of my studying Boolean algebra, but it isn’t work.

So I went looking for some work to do.
Read the rest of this entry »

Logic: proving the valid syllogisms

introduction

Added later: there is an Edit near the very end; I removed some silly text.

In this post I want to “finish off” syllogisms. No, this is certainly not the last word on syllogisms, and is almost certainly not my last word on them… but when I pick them up next, it will probably be to look at them using Boolean algebra.

What I propose to do in this post is

  • prove the four valid syllogisms in figure 1;
  • reduce the number of essentially distinct valid syllogisms from 15 to 8;
  • reduce that number from 8 to 6;
  • prove the two additional valid syllogisms;
  • suggest practical guidelines.

Let me begin by summarizing some of the information we will need to have at our fingertips.
Read the rest of this entry »

Posted in logic. Tags: , . 1 Comment »

Happenings – 2010 July 17

My mathematical life continues to be extremely narrowly focused; I’m doing logic.

I hope that the next post will summarize syllogistic reasoning… I think I can pretty clearly see the light at the end of the tunnel for this post. Of course, my favorite version of Murphy’s Law is: the light at the end of the tunnel is the headlight of an oncoming train.

Over lunch I mentioned the following puzzle to a friend, and he asked me to e-mail it to him so he could work on it. This comes from Brown’s “Boolean Reasoning”, p. 132 and pp. 134-135. I really like this puzzle.

1. if Alfred studies, then he gets good grades.
2. if Alfred doesn’t study, then he enjoys college.
3. if Alfred doesn’t receive good grades, then he doesn’t enjoy college.

What’s that all mean?
Read the rest of this entry »

Logic: adding and dropping quantifiers

Introduction

In this post, I want to introduce us to the formalism of adding or removing quantifiers.

Let me say up front that what I’m about to do amounts to parking my car at a “vista point” along the road, and looking around. If I accomplish anything in this post, it may be to give us some background and context for taking a course in formal symbolic logic, or for working carefully through a text.

As we have seen before, in three or four of my logic posts, there are two quantifiers, \exists and \forall\ ; they are read “there exists ” and “for all”. The first is called “the existential quantifier” and the second is called “the universal quantifier”. It seems that this material was first devised independently by Gentzen and Jaskowski in 1934, so it is surprisngly recent in logic.

What we want to do is to move comfortably between truth tables and tautologies and rules of inference, which do not contain quantifiers… and the kinds of statements which do contain quantifiers, which we find in mathematics and classical logic.

I will be using material I’ve posted about rules of inference and tautologies in one post, “all” and “some” in a second post, and syllogisms in a third prior post.

We have two quantifiers, and two operations to apply to each, so we should expect to find four rules.

Two of these laws remove quantifiers, and two of them add quantifiers. Their precise statements are covered with barbed wire; let’s begin with relatively vague statements. To put that another way, let’s start by being as vague as people usually are when they use these rules.

“The goal is not to make you a mathematical logician; the goal is to make you comfortable enough with quantifiers.” Exner, p. 68.

Read the rest of this entry »

Happenings – 2010 July 10

Okay, no technical post at all went out last weekend. By the time I realized that I was facing mathematical difficulties with the logic post, I didn’t even have enough time to finish off a projectile post.

I did, however, get up very early this morning… and I had been thinking about it during the week… and I think that I have resolved all my difficulties. I’ll see if I can knock off the logic post today… and then I would still have tomorrow in reserve.

The fact remains, nevertheless, that if I encounter more difficulties with the logic today, I will probably switch to another topic for a technical post this weekend, most likely the projectile post. That is, if the logic doesn’t hang together today, I will take a break from it. Enough!

And that’s it. I haven’t thought about any other subject, mathematically, since last weekend. Oh, there are a couple of new questions in the comments, and I have been thinking about those. I’ll try to get to them by the end of the day.

Happenings – 2010 July 3

My mathematical life continues to be fairly simple.

I am trying to put together a logic post about universal generalization etc. I’ve been meaning to do this for some time, but it was delayed for the obvious reason: I didn’t understand something.

“Real knowledge is to know the extent of one’s ignorance.” Confucius

Now I think I understand, and I want to put out two more logic posts. The second one will return to syllogisms. These will finish off my original projected posts on the subject.

In the meantime, I’ve learned a little bit about solving Boolean equations, and I’m looking forward to describing that, down the road. That is, the next two logic posts will not be the end of the subject.

If anything, I am not sure that I can finish the next logic post this weekend. Now that I understand this topic in principle, I’m busy looking at examples and counterexamples. That is to say, the potential material for the post is growing. Well, maybe it won’t fit into one post.

I feel badly if I can’t get a technical post out every weekend. Traffic on the blog peaks on Mondays, and I assume it’s people checking for a new post. I feel guilty if there isn’t one for them.

Still, publishing a technical post every weekend is a bit demanding. And the fact is, sometimes I just won’t get one done.

In the background, I have planned a set of posts about stepwise regression, and about regression diagnostics for outliers. I am intermittently looking at regression diagnostics for variance, normality, and independence. They seem to get relatively short shrift.

I’ll say this again when I get to the regression posts… I take a rather heuristic approach to regression analysis. Among the reasons for that are:

  • the residuals are not normal, even if the errors are – but we judge normality of the errors by testing the residuals because they’re all we have;
  • the residuals are not independent, even if the errors are;
  • I wouldn’t be surprised if the residuals do not have constant variance, even if the errors do.

(And I have another, more compelling, reason for my heuristic approach, but I’ll explain it when the time comes.)

Anyway, I’ve got plans for a fairly substantial number of posts about regression.

In addition, I have picked up control theory again… but I think it will be a while before I can post about it. Here’s a situation where I have a lot of facts, but I haven’t been able to organize them to my satisfaction. (That’s an understatement! But I don’t need to understand all of control theory – I just want more context for what I already know.)

Oh, after I get the next two logic posts out, I’ll pick up color once again. There are some nice things in Kang’s “Computational Color Technology”. Color appearance models, which are next after Kang on my color list, may get put off for a while.

Every once in a while I try to write a couple of posts about projectiles, since I did have fun playing with the math. If I don’t do them soon, they’ll never happen at all. It would be nice to have them in reserve for a weekend when my intended post can’t be completed.

And much of the impetus for the recent color posts and the planned logic posts is simply to finish off what I have already planned, before I go marching off with new stuff.

Well, I think it’s time to start working on logic. (Even the kid, my inner child, agrees.)