55,914 reputation
5136324
bio website
location ND
age 31
visits member for 2 years, 6 months
seen 5 hours ago

contact details

Visit Mathematica.SE


12h
comment How to make equidistant or split ListPoint
@BeingHuman I know you have 3D, but that doesn't mean that the solutions from the linked question don't work with no or little modification. Please do try. If you have trouble with them, then ask.
12h
comment How to make equidistant or split ListPoint
@BeingHuman The question "Equidistant points on a polyline" also uses points. Have you looked at that question? It starts with p = RandomReal[{-1, 1}, {20, 2}];, which is a set of 2D points.
14h
comment Speeding Up Image Processing Functions
Parallelize has a somewhat misleading name. It won't magically speed up anything. Compile also supports only certain functions, and compilation likely won't help at all with these functions, it might even hurt performance a tiny bit. This is, of course, not an answer to your question about how to speed up the operation.
15h
comment How to make equidistant or split ListPoint
You can interpolate between the points (Interpolation) then use the linked answer to make the equidistant points.
19h
comment Mathematica 10 Graph issue
I shouldn't have said that it doesn't have a layout as the layout obviously gets computed by GraphEmbedding, what I meant is that the display of the graph looks the same as that of RandomGraph[{10, 20}, GraphLayout -> None].
19h
comment Mathematica 10 Graph issue
Here's a minimal example: g = RandomGraph[{10, 20}]; GraphEmbedding[g]; g.
19h
comment Mathematica 10 Graph issue
The graph doesn't have a layout. In this case it gets shown like a summary box. Why it doesn't have a layout I don't know. If you remove the ; after RandomGraph[...] so it gets a chance to be shown alone first, it'll work. This smells like a bug, can you please report it to support at wolfram.com?
1d
comment How to create a screen shot of a notebook
@ArielSepulveda What precisely is missing in this solution? What are you looking to include that isn't?
2d
comment What is that Root[…] inside the answer represent?
Have you searched for Root in the documentation?
2d
comment why head Association cannot be replaced by head List
@Algohi As Michael said, for various atomic objects there are usually some functions to extract data from them. For Complex this is Im and Re. You might notice that MatchQ[Complex[1, 2], Complex[_, _]] is True and it is possible to do Complex[1, 2] /. Complex[i_, j_] :> {i, j}. This often causes confusion. It is important to realize that this works just because this specific functionality happens to be implemented for Complex. It does not mean that Complex has a generally accessible internal structure, e.g. List @@ Complex[1, 2] doesn't work.
2d
comment Given f[1] … f[k], k = 1, 2, 3… how do one find the general function f[n]?
FindGeneratingFunction and FindSequenceFunction do this, but they probably won't work for such a general symbolic sequence.
2d
comment Can NDSolve handle discountinuos data?
it's also possible to just make a numerical black box out of UnitBox, as in f[x_?NumericQ] := UnitBox[(x - 0.5) 0.5/0.2]. Then it works. But I'd like to understand why Mathematica thinks that it shouldn't attempt solving this equation when it knows that there are variables taking discrete values.
2d
comment Can NDSolve handle discountinuos data?
This is relevant: reference.wolfram.com/language/ref/DiscreteVariables.html
Jul
27
comment Providing a color function for ListPointPlot3D
Fair enough, removed that remark. And +1 :)
Jul
26
comment Partial Differential Equation in Parallel
Calling it "useless" is unfair. You get great convenience from Mathematica at the price of performance. If you solve the same in C or Fortran, you'll gain much more performance than parallelization would give you in Mathematica. Use the right tool for the problem.
Jul
26
comment Converting a nested for loop from MATLAB
@blochwave That's why I don't like to translate code I don't understand. For relatively simple code like this it's usually easier to understand the problem first, then re-implement it, than to blindly translate an algorithm when we don't know where it comes from. Maybe the starting index of 0 makes sense for the physics (?) problem the code is solving.
Jul
26
comment Converting a nested for loop from MATLAB
Never use For unless you know you need For. Do gives you the same in a more readable and safer (localized iteraror) manner. As a first step, I'd translate the code as is using Do and would only think about using alternatives later.
Jul
25
comment Ordering oscillators with negative powers: Infinite loops
It is indeed too long, but that also means that most people won't look at it. If you make a minimal example that demonstrates what's going wrong, it's more likely that you'll get an answer. This is a good guideline: sscce.org
Jul
25
comment Ordering oscillators with negative powers: Infinite loops
If you are having trouble with Mathematica code, please be sure to post the code in copyable form. It will also help us understand the question. With the current description, I do not see where the infinite loop comes from.
Jul
25
comment Sqrt disappeared when exporting plot to PDF in version 10
I can reproduce this on OS X, v 10.0.0. Can you report this problem to support at wolfram.com?