2,012 reputation
721
bio website
location
age
visits member for 1 year, 3 months
seen 4 hours ago
stats profile views 191

May
22
comment Interpolation and points of non-differentiability
Just do dg[x_] = D[g[x], x] and then dg[5] automatically becomes indeterminate...
May
22
comment Optimizing functions taking matrix arguments
This isn't a matrix-valued function. It's a function whose arguments are matrices, but the value the function returns is a scalar $p$-value.
Apr
3
comment Plotting data points: Optimizing size and visuals
@whuber, kale: I think this solution can suffer from undersampling. For example, if the data has a narrow spike, Plot's adaptive sampling may miss it entirely.
Apr
3
comment Plotting data points: Optimizing size and visuals
Well, the horizontal scale is so much larger than the vertical scale in this case that geometric distances are effectively the same as vertical differences here! But you make a great point. One only needs to modify the dist function to return the vertical difference, and then it does the job.
Apr
3
comment Plotting data points: Optimizing size and visuals
A standard approach for simplifying a polygonal curve while losing as little detail as possible is called the Douglas-Peucker algorithm. This demonstration by Mark McClure contains a Mathematica implementation.
Mar
3
comment Differentiating space curves
Probably I should also replace every Function[s, ...] with Function[s, Evaluate[...]] for performance as VF1 suggested. Or would that have any side effects?
Mar
3
comment Differentiating space curves
This computes $\gamma''(s)/\lVert\gamma''(s)\rVert$, which is not the same as the normal. One can see this, for example, on the parabola $(s,s^2,0)$.
Mar
3
comment Differentiating space curves
A closer analogue would be multiplyBy2[r]'[s], but that strangely yields a matrix, which is still not what I expected. I guess I see the problem, though I'm still in the dark about why it happens. Should I just avoid using primes on higher-order functions?
Mar
2
comment Differentiating space curves
@Artes: I hadn't seen that before. But I'd rather not redefine tangent and normal for every curve I might be interested in.
Feb
24
comment How to make a plot of function over 24 orders of magnitude?
As far as I can tell, the asker wants the point $(d, 0.0000697)$ to be visible on the plot, so this does not answer the question.
Feb
22
comment Mystified by inability to find info to do what seems really basic
...I don't understand why you don't put the expressions into multiple input cells?
Jan
20
comment Plotting the frequency spectrum of a data series using Fourier
Aliasing.
Jan
14
comment How to get shadows in Graphics3D?
Not unless they added it in the last couple of years...
Jan
13
comment How to create new “person curve”?
Given that the coefficients of $t$ inside the sinusoids are 1, 2, 3, ..., this is probably just the Fourier representation of a parametric curve. I'd guess they manually traced the curve as a polygon, took the discrete Fourier transform, and kept just enough of the lowest-order modes to make the curve look right. See also: Ptolemy and Homer (Simpson).
Jan
1
comment Problem with SphericalPlot3D plotting
@chris: Oh, that. Yeah, that makes sense. Silly me.
Jan
1
comment Problem with SphericalPlot3D plotting
@chris: Unless the editor is different from the notebook interface, that doesn't work for me. Whether it's an input or output cell, whenever I copy a θ it pastes as \[Theta] outside Mathematica.
Jan
1
comment Problem with SphericalPlot3D plotting
Oh well, I pasted them in from Character Map. Hope I didn't make a mistake somewhere.
Jan
1
comment Problem with SphericalPlot3D plotting
@Mr.Wizard, I don't think it's a duplicate. That question is about colouring the plot; this one is about parts of the desired plot not showing up at all. Unless there's some subtle property of Mathematica I'm missing that makes these the same thing, which, given that Mathematica is sufficiently complicated, is a possibility I won't dismiss...
Jan
1
comment Problem with SphericalPlot3D plotting
Is there an easy way to replace the escaped characters with their Unicode equivalents? I searched on meta but only found rcollyer saying they would do this, but not how to do so.
Jan
1
comment Regionplot with Boole - with more than dimension number of variables
Three equations in four variables will give you, generically, a one-dimensional solution space, which will project to a curve in 3D. This looks like it's going to be tricky; certainly RegionPlot3D doesn't do curves.