Reputation
53,094
Next tag badge:
268/100 score
19/20 answers
Badges
6 87 208
Impact
~720k people reached

Mar
14
comment White balance correction with Mathematica
@shrx, I've added a new method which doesn't affect the brightness.
Mar
13
comment 3D Vicsek Fractal Notebook
For the visualization only: p=Select[{-1,0,1}~Tuples~3,#.#<2&];Graphics3D[{Nest[#~Translate~p~Scale~(1/3)&,‌​Cuboid[],3]}]
Mar
6
comment Where can I find detailed information about the SystemOptions?
I agree with Szabolcs. You could search this site for examples of SetSytemOptions being used, but I think there will be far fewer examples than there are options. If you can identify the bottleneck in your code you could ask a specific question about improving its performance.
Mar
6
comment Logical Circuit
For AND you can use And and for XOR you can use Xor
Mar
5
comment Coloring an image with two Color schemes based on a Range
@Kuba I usually use Mr Wizard's renderImage function for this sort of thing.
Mar
5
comment Coloring an image with two Color schemes based on a Range
@Kuba, weird. I have no idea why that should be the case! I only tried it with the 10x10 image so didn't realise how slow it was.
Mar
4
comment Random numbers in C++ and Mathematica gives wrong results?
Isn't this more of a C++ question than a Mathematica one?
Feb
28
comment Strange behavior when setting NumericQ of a symbol
Confirmed with Mathematica 10.0.2 on Windows. I suggest you report it as a bug to WRI.
Feb
24
comment Problem in evaluation of a solution and plotting
You generate dphi with a single x value for each of the monotonically increasing y values. So you cannot possibly expect to get a plot like the image you posted.
Feb
24
comment How can I define or use a new coordinate system in Mathematica?
It looks like all the details of coordinate systems are in SymbolicTensors`CoordinateChartDataDump`mappingInfo so perhaps one could add another system by adding more rules there, but it doesn't look like much fun, and there's no guarantee it would work.
Feb
23
comment Inconsistency in arithmetic on list elements
@RalphDratman, if you haven't already, I recommend reading the page on Evaluation, it will help you to understand how Mathematica proceeds through the evaluation and why attributes like Listable work the way they do.
Feb
21
comment The efficiency compare between Flatten[#, 1] & and Join @@ # &
You might like also to consider the case of packed arrays (use Range[2] in place of {1,2} in your lists)
Feb
20
comment What does IndexBy do and how exactly does it work?
@episanty, I think all system symbols will show up in the autocomplete suggestions, though many are undocumented. For a complete list of such symbols: Select[Names["*"],MatchQ[ToExpression[#<>"::usage"],_MessageName]&] (it takes a minute to run).
Feb
20
comment Duplicate mapped elements in Riffle
Nice alternative to using SetAttributes there, I'll have to remember that!
Feb
17
comment I can not open any notebook
You have saved the Mathematica closing dialog, not your notebook. Can you confirm that you are saving the notebook from the notebook's File menu?
Feb
16
comment HOWTO encode/decode large chunks of Mathematica code/results e.g. for posting on sites?
I would also suggest using Hold or Defer as the second argument in Uncompress, for safety. Consider seEncode@Unevaluated@Unevaluated@Print["oops"] but with something nasty in place of the print.
Feb
16
comment HOWTO encode/decode large chunks of Mathematica code/results e.g. for posting on sites?
There is no need for the decoding parameter - any characters added at the end of the compressed string will be ignored by Uncompress
Feb
12
comment How can I improve NumberString?
@Mr.Wizard, the new pattern is definitely cleaner and it appears to work perfectly. Thank you.
Feb
10
comment Question about output of a function
pollardrho[17] is supposed to return Null though
Feb
10
comment Question about output of a function
It looks like you made a typo, maybe you forgot the semi-colon after the While loop. It's hard to be sure as the code you posted here is not the same as the code in your notebook (I can tell because the code here will not run at all due to missing brackets).