7,370 reputation
21667
bio website
location
age
visits member for 2 years, 6 months
seen 3 hours ago

A tribute to the ONE TRUE LOGO :)

logo


Aug
14
comment How to make a stereogram in Mathematica?
@SimonWoods Yes, I had to reduce the scaling factor before flatten to get better results (but less depth). Reducing the size of the bunny also helped.
Aug
13
comment How to make a stereogram in Mathematica?
I guess something like ImageAdjust@ Rasterize@ DensityPlot[(Sqrt[x^2 + y^2]) ( Cos[6 (Sqrt[x^2 + y^2])] - 0.5), {x, -3, 3}, {y, -3, 3}, Frame -> None, ColorFunction -> GrayLevel, PlotRange -> All] Could work instead of RadialGradientImage
Aug
13
comment How to make a stereogram in Mathematica?
For those of us not yet on V10, could you post a version without RadialGradientImage. I tried using depth = ImageCrop[ ImageAdjust@ Rasterize[ DensityPlot[Cos[x] + Cos[y], {x, 0, 4 Pi}, {y, 0, 4 Pi}, ColorFunction -> GrayLevel, Frame -> False], ImageSize -> {w nx, h ny}], {w nx, h ny}], But all I'm getting are Thread::tdlen: Objects of unequal length in, when running the shift part. (Still +1:)
Jul
15
comment How can I speed up this code?
Look into Compile.
Jun
16
comment Automatic Cuda/CPU code; Fast programme run
Hard to say. As for 1) blog.wolfram.com/2011/12/07/… or mathematica.stackexchange.com/questions/29349/…
Jun
9
comment Relative performance of the Julia language
What exactly is the question? This is a Q&A site after all...
Jun
8
comment Numerical simulation - getting slower the more data I have
Actually ConstantArray[{0.,0.,0.},len] would probably be better to prealocate
May
22
comment Whats Mathematica exactly is?
It's exactly a pattern rewriting engine:)
Apr
5
comment Organizing Code
But the answer is: yes, switch to packages and to Work Bench and your life will become easier.
Mar
4
comment Generating high quality charts in Mathematica for use in LaTeX and Word
The problem is that export to wmf and emf is hopelessly broken for any reasonably complex graphics. I usually just export to PNG as well (but I scale up the text and line thickness).
Mar
3
comment For loop in Mathematica
Seems like backslashes were eaten up somewhere...
Mar
3
comment Solving parametric equations by eliminating the common variable
Yup, my thoughts exactly. The edit changes the original use case somewhat.
Feb
27
comment Parallel optimization of Markov Chain Monte Carlo
A wild guess: the interpolation function is not properly distributed.
Feb
25
comment Using an ellipse as a threshold for Nearest function
Hmm, what about a tilted ellipse? I guess one would multiply the data by the inverse matrix representing the rotation and scaling...
Feb
20
comment Ticks in ListLogPlot using LevelScheme
You'll get better answers if you post a small self contained snippet of code demonstrating your problem.
Feb
19
comment Why does $Failed have attribute HoldAll?
@LeonidShifrin Hehe, I remember that a lot of your posts end with "I will change/improve/revisit this soon":) That's why I agree with beli 100%. I would also recommend to post the comment as an answer. The hypothetical more knowledgable people can either post their own answer or improve your own.
Feb
14
comment Avoiding overcomplicated structure of groups, masks and splited text on vector format plot export
Hmm, why the close votes?
Feb
13
comment NMinimize seems to call function with the same values multiple times
Hmm, I wonder why manual memonization does not help. ClearAll@f; f[x_?NumericQ] := (f[x] = (Print[N[x, 10]]; x^2)); NMinimize[f[x], x, Method -> "RandomSearch"]. So I guess f gets converted/compiled under the hood...
Feb
11
comment Import Large Excel File
I usually export to mx.gz (not that this format is not necessary compatible among versions and platforms, but it's an order of magnitude faster to work with). You might also take a look at HDF5.
Feb
10
comment Problem with With
@Alberto And the speed difference between the two is absolutely negligible for most applications.