Reputation
72,301
Next tag badge:
595/400 score
76/80 answers
Badges
5 179 407
Newest
 Enlightened
Impact
~850k people reached

Jun
30
revised Can I rely on the ordering of the adjacency matrix?
edited title
Jun
30
answered Can I rely on the ordering of the adjacency matrix?
Jun
30
comment How to get Complement function working in a For loop?
K is a builtin symbol, which is unfortunately not Protected. Assigning to K could easily cause Mathematica to return wrong symbolic results in certain rare cases. BTW the reason why it fails is that many commas are missing
Jun
30
comment Simple ways to implement vector dilation
@Rahul Sounds like a great idea! The problem is that actually plotting or discretizing region specifications fails very often. It seems that for Chad it does work well, and what's better, it even gives me the (approximately) equidistant points along the perimeter. I'm going to try it for my actual use case and hope for the best ... RegionBoundary@DiscretizeRegion[ImplicitRegion[RegionDistance[reg, {x, y}] <= 0.05, {x, y}], MaxCellMeasure -> 0.0001]. Why don't you post an answer?
Jun
30
asked Simple ways to implement vector dilation
Jun
30
revised Why don't the arrowheads show for this directed graph?
added 1 character in body; edited title
Jun
30
revised Why don't the arrowheads show for this directed graph?
edited body
Jun
30
comment Why don't the arrowheads show for this directed graph?
@rcollyer Though an arrowhead size specification in (numerical) absolute units would be really-really useful, if that can be arranged :-)
Jun
30
answered Why don't the arrowheads show for this directed graph?
Jun
30
comment AppendTo or Part in a ParallelDo?
... much, but in that case the difference between the two approaches you show also won't matter much. I hope this answers your questions about why shared variables are not a good idea.
Jun
30
comment AppendTo or Part in a ParallelDo?
@Guillochon Mathematica's parallel tools are geared towards computations which require no subkernel communication. What you are asking for is doable without subkernel communication. Any subkernel communication adds overhead, which is significant in Mathematica. You were asking, "Which one is the better practice? Usually for a serial operation I'd expect the first example to be faster". If you are looking for the best, as in fastest solution, then do not use shared variables. Yes, it is true that in some cases, when the individual computations take very long, it doesn't matter...
Jun
30
comment AppendTo or Part in a ParallelDo?
ParallelDo is just not suitable for this. Why don't you collect within subkernels, then merge at the end? Abusing SetSharedVariable for this purpose is almost never a good idea.
Jun
29
answered NSolve not solving
Jun
29
comment Defining A Function With A Certain Domain
This part seems to be incorrect: (Abs[x3]^2 + Abs[x4]^2 = 1). = is assignment, == is equality. Did you mean == without using any of the parentheses?
Jun
29
revised Defining A Function With A Certain Domain
added 8 characters in body
Jun
29
comment Displaying Greek letters with subscripts inside plot
Maybe you are looking for PlotLabel -> (TraditionalForm@HoldForm[Subscript[\[Xi], out] = #] &)[ 7].
Jun
29
comment Displaying Greek letters with subscripts inside plot
I don't understand the question. Please show a self-contained example, explain what you expect and how that differs from what you get. The PlotLabel -> { ... // DisplayForm} ~~ ToString[...] part of the code doesn't seem to make sense, and it's not clear to me what you are trying to achieve with ~~, which is an operator for use with string patterns.
Jun
29
comment Plotting based on all previous equation results
Look up Table and Accumulate. Plot assumes x to be continuous while you seem to treat is as discrete.
Jun
29
revised Plotting based on all previous equation results
edited tags
Jun
29
revised Problem with NDSolve: derivative interpreted as square
edited tags