41,524 reputation
562169
bio website
location
age
visits member for 2 years, 5 months
seen 13 mins ago

1h
comment How to plot a Circles-and-Squares fractal
@MichaelE2, love it! Try this one: {b,h}=Rescale@#@results[[3]]&/@{Abs,Arg}; Image[{h,1-0b,1-b},Interleaving->False,ColorSpace->"HSB"]
15h
comment Using Permutations to create numbers
+1 Nice. You could count count in twos and eliminate the EvenQ test for even shorter code Select[Range[0,999,2],#⋂0~Range~5==Sort@#&@*IntegerDigits]
16h
comment How can I restore the old `ImageCompose` behaviour?
Many thanks for the suggestion. The Export-Import conversion seems to remove the alpha channel though. However I can rasterize direct to Image and maintain the alpha channel using Rasterize[Overlay[{i1, i2}], "Image", Background -> None]. I have some tests to run but this looks good so far.
16h
comment Export notebook as epub?
I would add that if a command line converter is available it could be called from Mathematica using Run
16h
comment Creating a three dimensional fullerene molecule
The output from the built-in MoleculePlot is just a Graphics3D expression with spheres for the atoms and cylinders for the bonds. So use something like % /. {c_Cylinder :> Style[c, Red], s_Sphere :> Style[s, Blue]}
1d
comment How to plot a Circles-and-Squares fractal
No doubt there are more concise ways but try With[{r = Range[-50, 50]^2}, Image@Rescale@Mod[Outer[Plus, r, r], 100]]
1d
comment Setting the elements of a list equal to elements of a different list
It wasn't me that downvoted, but I would guess it's because C is Protected, and C[pos] should have been C[[pos]]. Also Set by itself is cleaner than Set[#1, #2]&
2d
comment How to multiply specific columns in a matrix of data?
Thanks Mr.Wizard, I always get an upvote or two for that when you use it :-)
2d
comment Extract common subexpressions from expressions
Also see this answer from Leonid
Sep
15
comment drawing core-shell structure
Also similar
Sep
11
comment Strange Behavior when making Equal Listable in Pick
@Mr.Wizard, done.
Sep
11
comment Complement change order of elements
@Mr.Wizard, it was late and I was too lazy to properly check if both questions were asking the same thing, so I just posted the link in case anyone else was looking for it. As there are still no close votes I guess the community consensus is that it's not a duplicate.
Sep
10
comment Complement change order of elements
Related, possibly duplicate? mathematica.stackexchange.com/q/1290/862
Sep
10
comment Hardware required to perform large symbolic calculations
For symbolic computations I would have thought that clock speed was a stronger consideration than number of cores?
Sep
10
comment Summing Normal random variables
This is incorrect. The OP wanted the PDF of the sum of two random variables, not the sum of two PDFs.
Sep
9
comment Replacing matrix values
It seems a teeny bit faster to use Infinity in place of Max[#]
Sep
8
comment How can I produce a list of solutions for a function which is updated with updated variables using for loop?
I have done a major edit to your question to clarify and simplify it. I believe it is now answerable so will vote for it to be reopened.
Sep
8
comment How can I produce a list of solutions for a function which is updated with updated variables using for loop?
As for actually answering the question, it would help a lot if you stated what output you are expecting. Do you just need the sum of all the solutions for X? Or perhaps a list of {1st solution, 1st + 2nd solution, 1st + 2nd + 3rd, etc...}
Sep
8
comment How can I produce a list of solutions for a function which is updated with updated variables using for loop?
It would have been better to edit the original question to address why that answer was no good for you. Editing bumps the question - giving it more visibility - and it isn't considered rude, whereas deleting and reposting when people have already invested effort in trying to help you is rude.
Sep
8
comment Image compose coordinate problem
@xslittlegrass, I used my spelunking tool from this question.