4,118 reputation
11028
bio website
location
age
visits member for 2 years, 2 months
seen 7 mins ago

10h
comment Graphplot doesn't connect vertices properly
You know how sometimes the very act of writing down a question leads you to the answer? In this case, it seems the act of copy-and-pasting the code into the question has revealed the answer. :)
10h
comment Check if n! is divisible by an arbitrary number m
@Öskå: The best part is that now we can't even vote to migrate it to the maths StackExchange.
18h
comment Strategies to find curves on messy data using FindCurvePath
This is one of those questions that's only hard to answer because there seems to be no documentation available about how FindCurvePath actually works. Can anyone give some idea of what the underlying algorithm is? The documentation is incredibly unhelpful.
22h
comment How can I find a root of my transcendental equation near a certain point?
The reason Solve has a hard time is that it tries to find all solutions, but there are actually infinitely many of them: two each surrounding $x=2n\pi$ for all $n\in\mathbb Z$. (So WolframAlpha's answer is misleading.) Restricting the domain, as in Artes' comment, helps because then there are only a finite number of solutions.
1d
comment Rotational Averaging of Image Periodograms (FFTS)
@bshev: Good catch! My previous code was off by half a pixel. Please see the updated answer. There is much less of a difference with your results now.
1d
revised Rotational Averaging of Image Periodograms (FFTS)
added 733 characters in body
1d
comment Non-Linear Graph
Adding the b as you said is precisely what you should do. However it is extremely sensitive to the initial guess, so try inserting {b, 0.01} into the third argument of FindFit. That gives the desired result. (Don't forget to change disp as well! :))
1d
comment Inhomogeneous phase-portrait with StreamPlot
@Adam: I've implemented a solution in the previous answer. It works: i.stack.imgur.com/hOlpq.png
1d
comment Why isn't my Stream code plotting multiple solution curves?
Please see my updated answer.
1d
revised Why isn't my Stream code plotting multiple solution curves?
added 1306 characters in body
2d
comment Plot of a periodic triangular wave
Almost exactly the way it's defined in the PDF: f[x_] := Piecewise[{{Abs[x], -1 <= x <= 1}, {f[x + 2], x < 0}, {f[x - 2], x > 0}}]
2d
revised RandomVariate does not evaluate a Hyperbolic Distribution
added 8 characters in body
2d
revised Data filtering using Butterworth filter
added link to previous question, edited grammar
Apr
19
comment Inhomogeneous phase-portrait with StreamPlot
I believe this is the same problem I wrote about here. I guess at some point I should get around to implementing the solution I talked about in my answer.
Apr
19
comment Deformation of pictures
See ImageTransformation and ImageForwardTransformation.
Apr
18
comment Measuring curve length on a binarized image
I did a little Googling and this blog post is highly relevant: Measuring boundary length. It would be nice if Mathematica implemented this approach natively. You cannot even converge to $\pi$ using rasterized circles with Mathematica's current implementation :)
Apr
18
comment Measuring curve length on a binarized image
This is probably the best built-in solution, but it's worth mentioning that it always overestimates the length of lines that are not perfectly axis-aligned or diagonal (by up to $8.2\%$).
Apr
18
comment Measuring curve length on a binarized image
But this gives the length of the diagonal line in @halirutan's answer to be 19.
Apr
17
comment How to generate all symmetric positive semidefinite 0,1 matrices of a given order
This question appears to be off-topic because it is about a fundamental algorithmic issue rather than about programming in Mathematica.
Apr
17
comment region plot in a 2-simplex
It's hard to tell what you're asking. Your plot already lies in the 2-simplex $x\ge0,y\ge0,x+y\le N$. Are you looking for a plot that looks like an equilateral triangle? Please explain what you mean by "transform the region into a 2-simplex".