Reputation
446
Top tag
Next privilege 500 Rep.
Access review queues
Badges
4 8
Newest
 Yearling
Impact
~3k people reached

Apr
12
comment Why does a comma insert a line break in a comment?
sacratus, considering your observation about (*" maybe the solution is for the front end's word-wrap code to treat comment text as if it were literal string input.
Apr
12
comment Relaxation of Mass-Spring System with Pinned Masses
The built-in Minimize function is a "black box" which, it seems to me, is not really able to find the lowest result in every possible kind of problem. Here is another easy way to minimize the energy in a system like yours: make a small random change in the position of one particle, do a test evaluation, and retain the change if it brings about a lower value for the energy, otherwise undo the change. Repeat this until the energy fails to decrease over a suitably large number of iterations. But if you prefer not to use any randomness in finding an answer, there are still several other methods.
Apr
12
comment Why does a comma insert a line break in a comment?
Michael E2, I had not thought about formatting for commented-out code. Maybe the comma-wrap behavior is related to that. Still, there should be a better way to make commented-out code look acceptable, don't you think?
Apr
12
revised Why does a comma insert a line break in a comment?
fix typo
Apr
11
revised Relaxation of Mass-Spring System with Pinned Masses
improved clarity
Apr
11
comment Why does a comma insert a line break in a comment?
Thank you for your additional experiments. My main question was supposed to be: is there a logical reason for this behavior? I would think every character ought to be neutral and, so to say, meaningless inside a comment. Is this line-wrapping behavior intended -- or is it a misplaced feature -- or even an outright bug?
Apr
10
awarded  Yearling
Apr
10
awarded  Nice Question
Apr
10
revised Why does a comma insert a line break in a comment?
In response to comments, I added an example.
Apr
10
asked Why does a comma insert a line break in a comment?
Apr
1
answered Relaxation of Mass-Spring System with Pinned Masses
Apr
1
awarded  Informed
Feb
23
comment Inconsistency in arithmetic on list elements
Simon Woods, thank you. I now see from the "closely related" answer, pointed out by Kuba, that you have thought about this and related issues at length. Apparently my mind is not properly wired for nested lists. In fact I spend far too much Mathematica time figuring out whether to write {2}, or maybe 2, or possibly 3 at the end of a Map or Apply construct.
Feb
23
comment Inconsistency in arithmetic on list elements
This comment was a mistake, and now I can't figure out how to delete it. I am sorry.
Feb
23
comment Inconsistency in arithmetic on list elements
I appreciate your taking the time to explain that. "... not well explained in the documentation." The documentation and help system definitely is improving, but it is still not a straightforward task to master this language.
Feb
23
comment Inconsistency in arithmetic on list elements
I would like to format my code, but I don't know where to find the instructions for doing so. Of course I see other people's formatting results, but I don't see how they are achieving them.
Feb
22
awarded  Yearling
Feb
22
revised Inconsistency in arithmetic on list elements
improve clarity
Feb
22
asked Inconsistency in arithmetic on list elements
Feb
13
answered Wolfram Workbench - Mathematica Development Alternatives