Brian,

I don't read you code right away, I'm afraid. What I understand is that you 
compute gear ratios. A ratio of 1 meaning no gearing. Gearing down by a ratio R 
means gearing up by a ratio %R . Gear ratios are nonnegative real numbers. 
Taking the logarithm, this means that a log-ratio of 0 means no gearing. 
Gearing down by a log-ratio L means gearing up by a log-ratio -L . Log-ratios 
are real numbers, positive, negative or zero. As changing sign is easier than 
taking reciprocals, log-ratios are more handy than ratios. That's the benefit.

Bo. 

--- Den man 27/7/09 skrev Brian Schott <[email protected]>:

> Fra: Brian Schott <[email protected]>
> Emne: Re: [Jprogramming] bicycle gear ratios
> Til: "Programming forum" <[email protected]>
> Dato: mandag 27. juli 2009 17.29
> Bo,
> 
> I am familiar with logarithms but I am having trouble
> seeing their
> benefit here. Could you elaborate, please? In my code I
> think one way
> to produce the result you suggest is to change the
> definition of
> ratios, as follows. But then how would you analyze the
> results
> differently?
> 
>    ratios     =:
> <"0@(/:~...@[ %/ \:~...@])  NB. sorted and boxed
>    ratios     =:
> <"0@(/:~...@[ -&^./ \:~...@])  NB. sorted and boxed
> 
> 
> On Mon, Jul 27, 2009 at 8:02 AM, Bo Jacoby<[email protected]>
> wrote:
> >
> > Isn't it better to display the logarithm of the gear
> ratios, translating ratios into differences?
> >
> -- 
> (B=)
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 


      ___________________________________________________________ 
Skal du købe ny bil? Sammenlign priser på brugte biler med Kelkoo og find et 
godt tilbud! - Se mere her http://dk.yahoo.com/r/pat/mmb
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to