[plt-scheme] order of magnitude
Let q be a positive rational (or real) number.
I am looking for the greatest integer number m such that:
(<= (expt 10 m) q)
Jos
----- Original Message -----
From: "Jens Axel Søgaard" <jensaxel at soegaard.net>
To: "Jos Koot" <jos.koot at telefonica.net>
Cc: <plt-scheme at list.cs.brown.edu>
Sent: Thursday, November 05, 2009 1:29 PM
Subject: Re: [plt-scheme] order of magnitude
> 2009/11/5 Jos Koot <jos.koot at telefonica.net>:
>> Your example assumes that (/ (log n) (log 10)) always is too small, which
>> cannot be trusted to be always true, I think.
>
> How is order(n) defined mathematically?
>
> --
> Jens Axel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20091105/25215e79/attachment.html>