Reputation
59,928
Next tag badge:
227/100 score
17/20 answers
Badges
7 104 237
Newest
 Good Answer
Impact
~834k people reached

15h
comment NDSolve kernel crash, affected by variable naming
No problem with Mathematica 10.4.0 on Windows 10
Apr
26
comment How can I identify which solution triggered the WhenEvent?
@ChipHurst, it might be the best way nevertheless. Thanks for the suggestion.
Apr
23
comment How to generate a limited number of tuples of a list and not all?
It would be useful to describe what ordering you want (note that your "first two" are the third and second elements of Tuples[{0, 1}, 3])
Apr
21
comment OpenCL Dot Product
@CraigCarter, sorry but I don't have permission to share that code, I wrote it but I do not own it.
Apr
20
comment Extract values from user-made procedures
You defined foo1 to take 3 arguments but you are calling it (in foo2) with a single list argument. foo1[a, b, c] is not the same as foo1[{a, b, c}]
Apr
14
comment Automatically Created Documents don't have safety dialogs on close?
@Kuba, ah that explains it. I'll delete this answer if Reb unaccepts it.
Apr
13
comment Automatically Created Documents don't have safety dialogs on close?
@Reb.Cabin, yes I expected the option to work directly in CreateDocument. Not sure if it's this way by design or a bug.
Apr
10
comment RegionNearest and neighborhoods
@yode, I guess you could take the complement of the n radius neighborhood and the (n-1) radius neighborhood to get just the boundary vertices.
Apr
10
comment RegionNearest and neighborhoods
That would be nice - I've lost count of the number of times I've coded something from scratch only to discover it was already implemented in some obscure context. Hopefully some future version will give access to all these internal mesh properties through a documented interface.
Apr
9
comment Output lists with new line for each record element
Look up Column
Apr
7
comment Optimization for iterating and plotting a matrix product and its elements?
Regarding numerical precision - when you use Compile you are always using machine precision. Outside of compiled code you can use exact arithmetic or arbitrary precision (see the tutorial tutorial/ArbitraryPrecisionNumbers for example), but it will be much slower.
Apr
7
comment Optimization for iterating and plotting a matrix product and its elements?
The square rooted term in the function appears 3 times and is quite complicated. It will be faster if you compute it just once like you do with t. Other than that I can't see any obvious optimisations.
Apr
6
comment Optimization for iterating and plotting a matrix product and its elements?
Maybe you can use some simpler, shorter functions to make a working example. It's really hard to optimise code just by looking at it - people really need something they can paste into Mathematica and play with. BTW you can use Dot for matrix multiplication.
Apr
6
comment Optimization for iterating and plotting a matrix product and its elements?
Your posted code includes symbols o,A,C,D in the complied function, but they are not defined anywhere. You should avoid using C and D anyway as they are built-in functions.
Apr
4
comment Importing .AVI to mathematica and frame extraction
In the documentation example is it exporting the movie okay, but failing to import it?
Apr
3
comment How to divide the wine into two equal portions
@iFikr I added the animation code.
Apr
3
comment How can one get all possible sublists of a list?
@MartinBüttner, regarding the linked question RunnyKine's answer here gives four empty lists if you remove the Union bit.
Mar
28
comment How to divide the wine into two equal portions
@yode, I added some explanation
Mar
26
comment PlayRange option ignored when exporting
Try Block[{Rescale = # &}, Export[...]]
Mar
24
comment Why is the range from $-\pi$ to $\pi$ in polar coordinates?
Another possible factor in the decision is to ensure that FromPolarCoordinates and ToPolarCoordinates are exact inverses.