Reputation
57,526
Next tag badge:
226/100 score
17/20 answers
Badges
7 94 225
Newest
 Nice Answer
Impact
~795k people reached

Mar
1
asked How can I add drop shadows and specular highlights to 2D graphics?
Mar
1
answered How can I add drop shadows and specular highlights to 2D graphics?
Mar
1
comment Is there a way to “hold” prefix / infix / postfix notation?
Does Interpretation[Postfix[foo // bar], foo // bar] work?
Feb
28
comment Plot Matlab icon
@xzczd, LaplacianFilter implements the Discrete Laplace Operator with a convolution. The second argument of LaplacianFilter just determines the size of the convolution kernel. By setting this to 1 the smallest possible kernel is used (3x3) which keeps lapMatrix as sparse as possible. If you use a larger kernel you will get a bit more accuracy but slow down the eigenvector calculation.
Feb
28
awarded  Nice Answer
Feb
27
answered Plot Matlab icon
Feb
27
awarded  Nice Answer
Feb
26
comment Something faster than Do loops with AppendTo
@rasher, I assumed that the v1 given in the question was an example and it would not generally be Range[n], but it's a good point worth mentioning.
Feb
26
revised Something faster than Do loops with AppendTo
deleted 4 characters in body
Feb
26
revised Something faster than Do loops with AppendTo
added 252 characters in body
Feb
26
answered Something faster than Do loops with AppendTo
Feb
25
comment Mathematica averaging a big list of large images
Why 0 set[[1]] and not just 0 ?
Feb
25
comment Defining Piecewise Functions in Modules
In this example you could reduce the problem to something like myfunc[] := Module[{rhs, f}, rhs = 2 x; f[x_] := Evaluate[rhs]; f[5]] This is small enough that you could use Trace[myfunc[]] to see exactly what is happening.
Feb
25
comment Defining Piecewise Functions in Modules
It's a good idea to reduce your problem to a Minimal Working Example that people can copy and paste into Mathematica to work on. This has 3 benefits, firstly it makes it easier for people to help you, secondly it makes the question and answers more useful to future visitors who might have the same problem, and thirdly the process of stripping the code down to the core of the problem will often help you to solve it yourself.
Feb
24
comment PDF for Gamma Distribution not what I expect
You're using a shape/scale parametrization (and getting the correct result). Most likely R is using a shape/rate parametrization. Try alpha = 3, beta = 1/5 to get the PDF you are looking for.
Feb
22
answered Behaviour of Simplify when used with ArcTan and ComplexExpand along with assumptions
Feb
22
comment Extract the left channel from an mp3 file
The supported formats for sound import are here
Feb
22
comment Extract coordinates from a polygon
It looks like your poly expression contains a list of length 2 at a higher level than the individual coordinate pairs that you are trying to reach with Cases. Try making the pattern inside Cases more specific, e.g. {_Real, _Real}
Feb
20
comment Behaviour of Simplify when used with ArcTan and ComplexExpand along with assumptions
The documentation states that "Assuming affects the default assumptions for all functions that have an Assumptions option." Since ComplexExpand does not have an Assumptions option, it does not use the assumptions you specified in Assuming
Feb
20
revised How to customize derivative behavior via upvalues?
added 1023 characters in body