Reputation
70,640
Next tag badge:
565/400 score
73/80 answers
Badges
5 170 391
Impact
~817k people reached

Apr
21
comment ParallelSubmit and WaitNext: check if a job is done before calling WaitNext
I'm not going to post an answer because this is all just guesses from some experimentation, usage message of QueueRun this doc topic: ParallelTools/tutorial/ConcurrencyManagingParallelProcesses.
Apr
21
comment ParallelSubmit and WaitNext: check if a job is done before calling WaitNext
I think you need to use QueueRun[] before DoneQ will know that the job has finished. The first time you evaluate QueueRun[], the job will be submitted, but at this point it is not done yet. Of course just a fraction of a second later is finishes running on the subkernel. But the main kernel (where you use DoneQ) does not know this until we trigger a communication with another QueueRun[]. Now DoneQ[job] is True. Try submitting many jobs and looking at their status as they're displayed in blue, green, grey in the notebook. The status changes only on QueueRun[] calls.
Apr
21
revised Read a compressed ascii data file?
added 34 characters in body
Apr
21
revised Integrate using \[Esc] int \[Esc]
edited tags
Apr
21
answered Integrate using \[Esc] int \[Esc]
Apr
21
comment Integrate using \[Esc] int \[Esc]
Try Ctrl-5. On a US English keyboard the % sign is above 5. What is your keyboard layout?
Apr
21
answered Read a compressed ascii data file?
Apr
21
comment Solving fifth order polynomial equation
What have you tried? Have you tried searching the web about solving equations with Mathematica?
Apr
21
revised Exchange variable value between Mathematica and Autohotkey script
edited tags
Apr
20
awarded  Nice Answer
Apr
19
comment Assignments in ParallelDo when using indexed variables
@VladimirMatveev If you like, treat it as goto . When people ask about doing such things on this site, in the majority of cases it turns out to be a bad idea. It doesn't mean that there's no room for SetSharedFunction and it's always a bad idea.
Apr
19
comment Assignments in ParallelDo when using indexed variables
@VladimirMatveev It's up to you to find out. If there isn't in this case, there might be any time you use zeros (after SetSharedFunction) in a different parallel computation. In general it is a good idea to avoid modifying the same variable from different kernels in Mathematica. If you need to assign to zeros, you can do it after you've returned a result from a parallel computation, and avoid ever setting zeros as shared.
Apr
19
answered Assignments in ParallelDo when using indexed variables
Apr
19
comment Assignments in ParallelDo when using indexed variables
longComputation(n) is not correct Mathematica syntax for a function call. In this case you would need SetSharedFunction as you are dealing with DownValues. However, the communication overhead you introduce with this is likely going to negate any benefits or parallelization. Try to write parallel code that never requires write access to the same variable from different threads. Reformulate your problm in terms of ParallelMap or ParallelTable.
Apr
19
revised Syntax highlighter shows error for Manipulate when it's inside a Block or a Module
added 1 character in body
Apr
19
answered Module and Manipulate: Why the Red Highlighting?
Apr
19
revised Alternatives to Mathematica
added 2 characters in body
Apr
19
comment Sequence evaluation in an If statement
The SequenceHold attribute needs to be assigned to the head that contains the Sequence[]. Here SetAttributes[seq, SequenceHold]; is not needed. Your example will work the same without it, seq = Sequence is sufficient. The evaluator will only flatten out a literal Sequence[] in If before evaluating the If. seq[] is not Sequence[] so it won't be flattened out before If is evaluated. Once If is evaluated, it yields seq[], which then is evaluated to Sequence[] which is then flattened out inside the {...}.
Apr
19
answered Sequence evaluation in an If statement
Apr
19
awarded  Necromancer