Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #16570

Re: Possible bug in Floor function?

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail
From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Possible bug in Floor function?
Date Sun, 16 Feb 2014 04:13:49 +0000 (UTC)
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <ldpdtt$6oe$1@smc.vnet.net> (permalink)
References <20140215090214.8888569D4@smc.vnet.net>
Lines 79
Organization Time-Warner Telecom
NNTP-Posting-Date 16 Feb 2014 04:19:18 GMT
NNTP-Posting-Host 3de5a8ea.news.twtelecom.net
X-Trace DXC=4he]=GTIcS\mmJjon<[c^_C_A=>8kQj6];[h;PUXBgbTfTF>IWQi=<\EFiONJ7[GoV;PRP8LaM4e_
X-Complaints-To abuse@twtelecom.net
Xref csiph.com comp.soft-sys.math.mathematica:16570

Show key headers only | View raw


It is sometimes better to simplify expressions prior to using numerical
techniques.


$Version


"9.0 for Mac OS X x86 (64-bit) (January 24, 2013)"


Off[Floor::meprec] (* Supressing error messages. This does not change the
results. *)


Floor[Log[10, x]] /. x -> 100 //
  FullSimplify // N


2.


Floor[Log[10, x] /. x -> 100 //
   FullSimplify] // N


2.


Oddly, using PowerExpand results in an integer result despite the use of N


Floor[Log[10, x]] /. x -> 100 //
  PowerExpand // N


2


Floor[Log[10, x] /. x -> 100 //
   PowerExpand] // N


2



Bob Hanlon




On Sat, Feb 15, 2014 at 4:02 AM, psycho_dad <s.nesseris@gmail.com> wrote:

> Hi,
>
> I think I may have stumbled upon a possible bug in Floor. Evaluating the
> following gives the correct result:
>
> Floor[Log[10, 100.]]
> 2
>
> Evaluating it with a replacement and //N gives a message and the wrong
> result:
>
> Floor[Log[10, x]] /. x -> 100 // N
>
> Floor::meprec: Internal precision limit $MaxExtraPrecision = 50.` reached
> while evaluating Floor[Log[100]/Log[10]]. >>
>
> 1
>
> I'm on Math 9.0 + Win7, but Math 8 gives the same (wrong) result as well.
>
> Cheers
>
>

Back to comp.soft-sys.math.mathematica | Previous | NextNext in thread | Find similar


Thread

Re: Possible bug in Floor function? Bob Hanlon <hanlonr357@gmail.com> - 2014-02-16 04:13 +0000
  Re: Possible bug in Floor function? John Doty <noqsiaerospace@gmail.com> - 2014-02-18 03:46 +0000

csiph-web