WOLFRAM COMMUNITY
Connect with users of Wolfram technologies to learn, solve problems and share ideas
Join
Sign In
Dashboard
Groups
People
Message Boards
Answer
(
Unmark
)
Mark as an Answer
WOLFRAM COMMUNITY
Dashboard
Groups
People
1
|
5238 Views
|
2 Replies
|
2 Total Likes
View groups...
Follow this post
Share
Share this post:
GROUPS:
Mathematica
Wrong result for very simple series with Floor
Mario Weitzer
Mario Weitzer
Posted
12 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
Reply
|
Flag
2 Replies
Sort By:
Replies
Likes
Recent
1
Bruce Miller
Bruce Miller, Wolfram Research
Posted
12 years ago
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
Reply
|
Flag
0
Jari Kirma
Jari Kirma
Posted
12 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
|
Flag
Reply to this discussion
in reply to
Add Notebook
Community posts can be styled and formatted using the
Markdown syntax
.
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Publish anyway
Cancel
Reply Preview
Attachments
Remove
Add a file to this post
Follow this discussion
or
Discard
Group Abstract
Be respectful. Review our
Community Guidelines
to understand your role and responsibilities.
Community Terms of Use
Feedback