Reputation
59,988
Next tag badge:
228/100 score
17/20 answers
Badges
7 106 237
Newest
 Good Answer
Impact
~835k people reached

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.
Mar
22
comment General techniques for creating complex animations
@LLlAMnYP, thanks. I think the code is confusing too! I had the idea to use an association so that chunks of graphics could be named, which then drove the whole thing in a weird direction. I have a much better version now which I'll try to post later.
Mar
17
comment Has compilation of big programs become excessively sluggish in v 10.4?
It looks like it's the typesetting that takes all the time. Try using SetSystemOptions["TypesetOptions" -> {"IconicElidedForms" -> False}]
Mar
9
comment Create “Ostagram” like Images using Wavelet Transforms
Do you have any reason to expect that this wavelet operation can give anything remotely like the deep neural network images?
Mar
9
comment Create “Ostagram” like Images using Wavelet Transforms
It would help to include example images
Mar
8
comment How can I generate this “domain coloring” plot?
@Mr.Wizard, I'll update it. The original contained two errors and I only fixed one.
Feb
24
comment Export audio with frames?
I'm pretty sure there is no way to export any kind of movie file with an audio stream. You will probably have to use a separate application.
Feb
24
comment Calculate area of black sea from image
Possible duplicate
Feb
22
comment Using BandpassFilter
delta is given in Hz so you need to multiply it by 2Pi
Feb
20
comment Automatic Ticks on x-axis, but not first 5% of x-range
@AlexeyPopkov, good point. I had forgotten that you could supply a function for Ticks.
Feb
20
comment Why is ListPlot so slow here?
I wondered about injecting timing information into the Trace to help locate the problem area in the huge output, but Trace adds its own delays.
Feb
20
comment Why is ListPlot so slow here?
It's no better in 10.3.1. I tried this but it wasn't as informative as I'd hoped: Module[{a = AbsoluteTime[]}, Block[{Charting`dbPrint = Print[AbsoluteTime[] - a, " ", #] &}, ListPlot[dat]]]
Feb
20
comment Automatic Ticks on x-axis, but not first 5% of x-range
I don't think so. Ticks are either fully automatic or explicitly specified.
Feb
20
comment How to put Magnification control in docked cell
related
Feb
16
comment Memory limit hit: optimize code for finding twin primes
Yes p was included twice in the original code - once in primesList and again explicitly in twinPrimes. 5 also appears in both. You can remove both of those from primesList and also work from small numbers up by changing the range in primesList to Range[PrimePi[p-1], 4, -1]
Feb
16
comment Memory limit hit: optimize code for finding twin primes
Checking all possible products would rapidly become impractical. For the m'th prime the number of products to check is (pl+1)^(m-3), for example in testPrime[Prime[100],1] you would be testing 2^97 products. I'm getting a loop time of around 3ms so you'd be looking at something over 10^19 years for it to complete, or a billion times the age of the universe.
Feb
16
comment Memory limit hit: optimize code for finding twin primes
You should be able to use testPrime in parallel, e.g. `ParallelTable[testPrime[Prime[j], 1], {j, 4, 1000}]
Feb
15
comment Brackets around each item in matrix
I get similar results, to within a scaling factor for my slow CPU. Interesting that Join is much worse on packed arrays!
Feb
14
comment Role of Accuracy in numerical evaluations, SplitBy vs GatherBy
A simpler formulation of the same fundamental question: Given list = SetAccuracy[{1, 1, 1.01, 1.01, 1.02, 1.02}, 2] why does Gather[list] give a different result from Split[list]