Fog Creek Software
Discussion Board


int  marchDistance = 0
int  time;

  1000*time + 100*time = 200 - marchDistance;
    marchDistance = time*200;
} while (marchDistance < 200);

Friday, January 28, 2005

Is this supposed to compile?  You have no l-value.

Monday, January 31, 2005

Dude, the variables are not even initialized, what kind of crappy question is this supposed to be?

Monday, January 31, 2005

I guess the simplest solution is the given one, but I came up with the following one using a serie (I'm not that good in english, I don't know if it's the correct word):

X=2000/9*&#931;(9/11)^n, with n integer from 1 to infinite. Each n gives the space ran by the bee in each round (for n=1, the first round= 2000/11 miles until it first meets the opposite train)

I don't think there's a simplification of it, so try it in the excel.

Obviously, it's the dull solution, but I find the series so intriguing.
It would also be nice for the programmers, there must be an easy way to visualise this in fortran or another mathematical language (matlab maybe). I've nothing to do with informatics, so I leave it to you.

Panagiotis Apostolopoulos
Monday, April 18, 2005

The *&#931; is the Sigma symbol of series (!!!). My native tongue is greek but the computer doesn't seem to understand it...

Panagiotis Apostolopoulos
Monday, April 18, 2005

*  Recent Topics

*  Fog Creek Home