Reputation
72,016
Next tag badge:
595/400 score
76/80 answers
Badges
5 178 406
Impact
~847k people reached

11h
comment Simple ways to implement vector dilation
@Rahul Thanks again, I managed to come up with a robust solution by making some minor modifications to your line. I'll post later tonight when I get the time.
1d
comment Simple ways to implement vector dilation
@Rahul Unfortunately for my actual use case it just gives up :( I'll post a better example tomorrow, no internet connection at home and I need to leave :(
1d
comment Can I rely on the ordering of the adjacency matrix?
@SjoerdC.deVries That's correct AFAIK, I was too lazy to point that out. However, if the vertex list is not explicitly given then in the current version it just takes the order of vertices as they first appear in the edge list. In future versions, who knows?
1d
revised Why don't the arrowheads show for this directed graph?
added 3 characters in body
1d
revised Can I rely on the ordering of the adjacency matrix?
edited title
1d
answered Can I rely on the ordering of the adjacency matrix?
1d
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
1d
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?
1d
asked Simple ways to implement vector dilation
1d
revised Why don't the arrowheads show for this directed graph?
added 1 character in body; edited title
1d
revised Why don't the arrowheads show for this directed graph?
edited body
1d
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 :-)
1d
answered Why don't the arrowheads show for this directed graph?
1d
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.
1d
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...
1d
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.
2d
answered NSolve not solving
2d
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?
2d
revised Defining A Function With A Certain Domain
added 8 characters in body
2d
comment Displaying Greek letters with subscripts inside plot
Maybe you are looking for PlotLabel -> (TraditionalForm@HoldForm[Subscript[\[Xi], out] = #] &)[ 7].