Reputation
13,005
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
2 30 76
Newest
 Nice Answer
Impact
~122k people reached

Jan
13
comment 3D representation of a transcendental equation
Try evaluating F*Exp[x] + x*y + Sqrt[F - y] /. sl /. {x -> -1, y -> -1}: neither "solution" satisfies the original equation.
Jan
9
comment How to “inform” successive ContourPlot calculations?
No, just change your definition of z to stop iterating sooner and use that in ContourPlot.
Jan
9
comment How to “inform” successive ContourPlot calculations?
The first thing I'd try is to change your function to stop iterating as soon as $|z(r,c)|>2$. This doesn't change the contour, but now for most of the points in the plot range it won't have to iterate all the way to $n$. I don't know if it's easy to do this efficiently in a functional style; I would write an explicit loop instead.
Jan
5
comment Integration of a Gaussian function in kernel density estimation
Nothing is wrong. Kernel density estimation is not supposed to recover the original distribution (unless $h\to0$), it is supposed to give you a smoothed version of the distribution. In this case, you have computed the convolution of two normal distributions with variance $1$, which is a normal distribution with variance $2$.
Jan
4
comment Help with finding the point(s) inside a closed shape with the highest average ray length?
Sorry, I don't think I can help further. This seems to be a specific problem on your side.
Jan
3
comment Convexity Coefficient Calculation
Ah, it doesn't seem to like MeshRegions. If you keep them as graphics primitives it works: RegionDimension[RegionDifference[lines[[1]], Polygon[{{0, 0}, {1, 0}, {0.1, 0.5}, {1, 1}, {0, 1}}]]] gives 1, showing that the line is not entirely contained in the polygon.
Jan
3
comment Convexity Coefficient Calculation
Related: How to check if a line segment intersects with a polygon? Just replacing RegionIntersection with RegionDifference in some of those answers should work.
Jan
3
comment Help with finding the point(s) inside a closed shape with the highest average ray length?
Please enter the statements into Mathematica one at a time and show me what happens. By the way the easier way to upload an image is to add it to your question and then just copy the URL without submitting the edit.
Jan
3
comment Interpolation of 4D data on a triangular grid
Your data points lie entirely in a 2D plane, so it is not possible to perform interpolation across 3D space. Maybe discard one of the three coordinates and perform 2D interpolation?
Jan
2
comment Help with finding the point(s) inside a closed shape with the highest average ray length?
Sorry, I don't know what could be the problem. I assume you must've tried restarting Mathematica at some point. When you enter the curve = ... line, do you get the first image (the blue polygon)? At what point do you start seeing errors?
Jan
1
revised Help with finding the point(s) inside a closed shape with the highest average ray length?
added 336 characters in body
Jan
1
comment Help with finding the point(s) inside a closed shape with the highest average ray length?
Sorry, I forgot to include the definition of the curve.
Jan
1
revised Help with finding the point(s) inside a closed shape with the highest average ray length?
added 27 characters in body
Dec
31
revised Help with finding the point(s) inside a closed shape with the highest average ray length?
added 355 characters in body
Dec
31
answered Help with finding the point(s) inside a closed shape with the highest average ray length?
Dec
29
comment Is the real spherical harmonic (l = 1, m = 0) really 'bigger' than (l = 1, m = 1)?
From the documentation: "The spherical harmonics are orthonormal with respect to integration over the surface of the unit sphere." The issue you're running into is that the $m\ne0$ harmonic is complex-valued, with half its energy in the real component and half in the imaginary one. So if you just plot the real component, its amplitude turns out to be only $1/\sqrt2$ of the amplitude of the purely real $m=0$ harmonic. If you want to plot atomic orbitals, you should probably plot both Sqrt@2 Abs@Re[...] and Sqrt@2 Abs@Im[...] for all the $m>0$ harmonics.
Dec
28
comment How to restructure a list of {x,y,f[x,y]}-triples for use with Interpolation?
Apparently an identical question was closed(?!) two months ago.
Dec
25
awarded  Nice Question
Dec
25
revised Revolution of Koch Snowflake
added 2392 characters in body
Dec
25
answered Prevent Plus from threading