Message Boards Message Boards

1
|
4363 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:
GROUPS:

Wrong result for very simple series with Floor

Posted 11 years ago
On Mathematica 8 the following sum
Sum[Floor[2/2^p], {p, 1, Infinity}]
evaluates to 0, which is obviously wrong.
Sum[Floor[2/2^p], {p, 1, 10}]
evaluates correctly to 1.
POSTED BY: Mario Weitzer
2 Replies
Thank you for pointing this out.

Reports of incorrect behavior are best handled by sending the
information to support@wolfram.com or using the feedback form at
http://www.wolfram.com/support/contact/email/.

This has been passed on to the Technical Support group for
processing.
POSTED BY: Bruce Miller
Posted 11 years ago
Seems like a bug to me.
Sum[Floor[2^-p], {p, 0, Infinity}]

(* 0 *)

Sum[Floor[2^-p], {p, #, Infinity}] & /@ {-1, 0, 1}

(* {3, 0, 0} *)

Strangely enough, this works:
Sum[Floor[2^-p], {p, {-1, 0, 1}, Infinity}]

(* {3, 1, 0} *)
POSTED BY: Jari Kirma
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract