MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Lower Floor

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39034] Re: [mg39004] Lower Floor
  • From: "German BUITRAGO A." <gerbual at col2.telecom.com.co>
  • Date: Sat, 25 Jan 2003 01:24:55 -0500 (EST)
  • References: <200301241005.FAA04598@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

André:

Realize that

In[1]:=
FullForm[N[Log[8]/Log[2]]]

Out[1]//FullForm=
2.9999999999999996`

Under these conditions, and keeping in mind that

In[2]:=
?Floor

In[2]:=
"Floor[x] gives the greatest integer less than or equal to x."

It is obvious that

In[3]:=
Floor[N[Log[8]/Log[2]]]

Out[3]=
2

In[4]:=
Ceiling[N[Log[8]/Log[2]]]

Out[4]=
3

Greetings,

Germán Buitrago


----- Original Message -----
From: "André Giroux" <giroux at dms.umontreal.ca>
To: mathgroup at smc.vnet.net
Subject: [mg39034] [mg39004] Lower Floor


> Hi All.
> With Mathematica 4.1 on Windows98:
> N[Log[8]/Log[2]]
> 3.
> Floor[N[Log[8]/Log[2]]]
> 2
> Beware!
>
>



  • References:
    • Lower Floor
      • From: "AndrĂ© Giroux" <giroux@dms.umontreal.ca>
  • Prev by Date: RE: Functional programming
  • Next by Date: Re: Do Loop storing the outputs
  • Previous by thread: Lower Floor
  • Next by thread: Re: Lower Floor