Tuesday, March 28, 2006

Learn How to Eat Sushi

Sunday, March 19, 2006

Sectionals, Day 3

This was the last day of the meet. I swam the 100 fly and 100 free. 100 Fly: I got 59.42, and I came in 19th out of 29. My time from State is 59.36. I died on the second 50... We didn't get a video of this race because of some Issues. 100 Free: I beat my old time by 57 hundredths of a second, with a 53.16. I got 24th out of 34. Here's the video for my 100 free: Our team got 20th out of 143 teams. If Tori and Crystal were at the meet, we'd probably be within the top 8.

Saturday, March 18, 2006

Sectionals, Day 2

On the second day of the meet, my events were the 200 fly and 200 free. 200 Fly: I got 2:12.85. I improved two one-hundredths of a second from several weeks ago... I got too excited and swam the first 150 almost all out, then died at the end. I came in 19th out of 33. ...I WILL get a Zone time in my next 200 fly! 200 Free: 1:56.16. I dropped 15 hundredths of a second from State. John said it was really good because my splits were 28, 30, 29, 28. I got 16th place out of 28. Here are the movies of my 200 fly and 200 free: 200 Fly 200 Free

Friday, March 17, 2006

Sectionals, Day 1

This is the first day of Sectionals, and it's really exciting to be at this pool again. There are 143 teams here, from 7 different states: Alaska, Hawaii, Idaho, Montana, Oregon, Washington and Wyoming. My two events for today were the 50 free and 200 IM. 50 Free: I didn't do very well in this event. I got 24.66, 32 hundredths of a second (32 jiffies!) off my time from State two weeks ago. I was also 67 hundredths off a Zone time. I got 23rd place out of 30. 200 IM: I got 2:12.15. I improved one second. I was still a little tired from my 50, since I had to get ready for the 200 IM as soon as I was done warming down. But John said it was really good. I got 20th out of 30 people. I also time trialed the 50 free to try and get the Zone time. I got 24.36; not a Zone time, but John said it was a "perfect race". I guess I'm more of a mid-distance swimmer. My mom filmed my first two events. (If they don't work, you need to download Quicktime 7. 50 Free 200 IM

Wednesday, March 15, 2006

Morton

We're in Morton, Washington now. Tomorrow we'll drive up to Federal Way for Sectionals. I'll be posting pictures of the meet. EDIT: You can get realtime results at www.pns.org/realtime.

Monday, March 13, 2006

Upgraded from Brain to Processor

My current math homework is factoring out trinomials, which can take a long time with a mere human brain. So my mom and I wrote a program to do this. It's written in C and Objective-C (with the Foundation framework), but it shouldn't be hard to port it to another language, if you're not a UNIX user. Here it is: #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int num1, num2, num3, a, b, c, d; NSMutableArray * num1Factors = [[NSMutableArray alloc] init]; NSMutableArray * num3Factors = [[NSMutableArray alloc] init]; printf("Enter the coefficient for x-squared: "); scanf("%d", &num1); printf("Enter the coefficient for x: "); scanf("%d", &num2); printf("Enter the constant: "); scanf("%d", &num3); int i; int plusNum1; if (num1 < 0) { // if num1 is negative, we need to count from num1 to positive num1 i = num1; plusNum1 = -num1; } else { i = 1; plusNum1 = num1; } // find the factors for num1 while (i <= plusNum1) { if (num1 % i == 0) { NSNumber * f1 = [NSNumber numberWithInt:i]; NSNumber * f2 = [NSNumber numberWithInt:num1/i]; [num1Factors addObject:f1]; [num1Factors addObject:f2]; } i++; } int j; int plusNum3; if (num3 < 0) { // if num3 is negative, we need to count from num3 to positive num3 j = num3; plusNum3 = -num3; } else { j = 1; plusNum3 = num3; } // find the factors for num3 while (j <= plusNum3) { if (num3 % j == 0) { NSNumber * f1 = [NSNumber numberWithInt:j]; NSNumber * f2 = [NSNumber numberWithInt:num3/j]; [num3Factors addObject:f1]; [num3Factors addObject:f2]; } j++; } // ok, now do the calculations BOOL flag = YES; int i1 = 0; int i2 = 1; // try each pair of num1 factors while (i2 < [num1Factors count] && flag == YES) { int j1 = 0; int j2 = 1; // try each pair of num3 factors while (j2 < [num3Factors count] && flag == YES) { // get two pairs of factors, one for num1 and one for num3 a = [[num1Factors objectAtIndex:i1] intValue]; b = [[num1Factors objectAtIndex:i2] intValue]; c = [[num3Factors objectAtIndex:j1] intValue]; d = [[num3Factors objectAtIndex:j2] intValue]; if (num2 < 0 && num3 > 0) { c = -c; d = -d; } // try it out, and if it doesn't work, start over with the next pair of factors if ((c*b)+(a*d) == num2) { printf("(%dx+%d)(%dx+%d)", a, c, b, d); flag = NO; } j1 += 2; j2 += 2; } i1 += 2; i2 += 2; } [num1Factors release]; [num3Factors release]; [pool release]; return 0; }

Thursday, March 09, 2006

It's snowing!

Sunday, March 05, 2006

The Byte Factory

Joseph's, Daniel's and my software company is finally on it's way.

Wednesday, March 01, 2006

Medals

Here are the medals I got from State. The maroon one is 6th place and the rest are 7th. Click for a larger image.