The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Is there ever a case where two consecutive commas in not an error?
Replies: 3   Last Post: Mar 31, 2013 3:11 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
W. Craig Carter

Posts: 266
Registered: 9/10/05
Re: Is there ever a case where two consecutive commas in not an error?
Posted: Mar 31, 2013 3:11 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Thank you David,
You are right.

I thought of another case last night where the double comma is not an error.
But, this one does show error highlighting in half the cases, but none
of which are errors

{Graphics[Disk[]], , Graphics[Circle[]]},
{, , Graphics[Rectangle[]]}

(*I get the first comma in the second list highlighted with my global preferences*)

I think the highlighting as a "suspected" error is useful.

I like your iMap!


W Craig Carter
Professor of Materials Science, MIT

On Mar 30, 13, at 8:00 AM, djmpark wrote:

> << Presentations`
> iSum[a[i], {i, 1, 2, , n}]
> a[1] + a[2] + \[CenterEllipsis] + a[n]
> iSum[a[i], {i, 1, 2, , k, Null}]
> a[1] + a[2] + \[CenterEllipsis] +a[k] + \[CenterEllipsis]

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.