Reputation
7,177
Next privilege 10,000 Rep.
Access moderator tools
Badges
14 51
Impact
~59k people reached

Jun
24
awarded  Nice Question
Jun
23
comment Held keys in associations
@Mr.Wizard you're welcome :)
Jun
19
comment Why do Mathematica list indices start at 1?
From wikipedia we get the following: "Under zero-based numbering, the initial element is sometimes termed the zeroth element" and "In a zero-based indexing scheme, the first element is "element number zero"". I wonder how consistent programmers that use zero-based indexing are with respect to this kind of language.
Jun
15
comment What are the most common pitfalls awaiting new users?
StringMatchQ also treats certain characters as special, see the details and options section of the documentation of StringMatchQ.
Jun
15
comment What are the most common pitfalls awaiting new users?
@Verbeia does it not all depend on perspective and use case? I like programming with compile/C in mind and there are many situations in which I find a loop on the top level natural. Support for that perspective can be found here.
Jun
15
comment What is the relationship between Thread and MapThread
Obvious, but see also the sections Properties and relations and Possible issues sections of MapThread.
Jun
11
answered How to Thread with custom functions? Thread vs Map?
Jun
11
comment Numerically solving Helmholtz equation in 3D for arbitrary shapes
@chris (if you remind me) I will try again later. I must say that I was not being very clear. I ran all your code in your answer, blindly copy pasting. There were some error messages in some places, in particular in the evaluation of the last line {ev, if, mesh} = helmholzSolve3D[RR, 4, MaxCellMeasure -> 0.25], where I got the error that I posted. I did not get any image for the last line. I may have been too impatient in rendering images, waiting at most 30 seconds or so for each. Possibly you could include timings?
Jun
11
comment What are the most common pitfalls awaiting new users?
I'm a bit rushed and probably still confused writing this, so I should probably not edit, as I would probably only cause more confusion :). Thanks for the reply, it is a kind thing to reply to a rushed comment or rant :).
Jun
11
comment What are the most common pitfalls awaiting new users?
I am sorry I must say I had a follow up comment before, in which I also said everything was probably fine. I deleted that comment because I confused myself. Most likely I had some lingering DynamicBoxes evaluating expressions when I didn't expect them to get evaluated. If you can still see that comment, it was probably correct :). I really like your statements in quotes in your comment, which do a good job of providing more details. It also makes sense to make a global (possibly slightly ambiguous) statement first and provide details later on.
Jun
10
revised Button evaluation inside DynamicModule
deleted 552 characters in body
Jun
10
revised Button evaluation inside DynamicModule
Without DynamicModule
Jun
10
comment What are the most common pitfalls awaiting new users?
Nice answer, I think you identified some nice common mistakes. Re: "Dynamic is fundamentally a Front End construct", I just wanted to rant here. We have that MakeBoxes[Dynamic[x]] evaluates to DynamicBox[ToBoxes[x,StandardForm]]. It is then the DynamicBox that is a "Front End construct", that is probably tracked by the Front End in a special way. At this point we can imagine that no expression with head Dynamic needs to be handled anymore, we are just evaluating an expression with head ToBoxes when the Front End asks for it.
Jun
10
comment Numerically solving Helmholtz equation in 3D for arbitrary shapes
On 10.1, that is.
Jun
9
comment Numerically solving Helmholtz equation in 3D for arbitrary shapes
I think I get "TetGenTetrahedralize::reterr: Tetrahedralize returned an error, 3." Not really sure that everything loaded correctly, though I do get some nice images.
Jun
4
comment ParallelMemberQ
Another big bottleneck may be that when we use ParallelMap, the data in the list has to be made available to the other kernels. If this is done by copying the data, then we cannot really use this to make a competitive solution.
Jun
4
awarded  Popular Question
Jun
3
comment ParallelMemberQ
@Mr.Wizard I think questions about parallelizing simple tasks are quite nice. We should be careful about not making duplicate (efforts in) answers though, as the link your provide is quite comprehensive. Maybe halirutan can make this into a nice example on how to use parallelize stuff.
Jun
3
comment Fastest way to check for List membership
I think it would be nice to note here that MemberQ unpacks and that it can easily be compiled. I suppose reference to Leonids compiled function would also be nice (somehow I couldn't easily get it to work).
Jun
3
revised ParallelMemberQ
MemberQ unpacks