No, in math a sum of 0 numbers is 0, because 0 is the identity for addition. The product of 0 numbers is 1, for similar reasons. And for 0 being the sum of 0 numbers is logical. For instance, the sum of "1, 2, 3, 4" is "10". If I remove 4 from the set, I subtract 4 from 10, leaving a sum of "6" for "1, 2, 3". Remove 3, get a sum of "3" for "1, 2". Remove 2, and get a sum of "1" for the set "1". Remove "1", and you get a sum of "0" for the set "". Also, if you define the sum of a set of 0 elements to be 0, it becomes easy to calculate the sum of the union of two sets: it's the sum of both subsets, and you don't have to special case the case where one of the sets is empty.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.