7,027 reputation
1449
bio website
location
age
visits member for 2 years, 8 months
seen yesterday

Aug
25
comment Missing arrow tips and colors
PlotRange -> All?
Aug
20
comment Account for powers of 0 and 1 when defining function
Your could use arg1_ /; FreeQ[arg1, Plus] to ensure monomialism.
Aug
18
comment Removing Linear drift from an oscillating data
@jason Then as a further though, you might not want to just take every 5000th point raw for the interpolation. You might want to smooth it our first. MedianFilter could be a good choice.
Aug
11
comment Why is mathematica giving wrong and incomparable results for the integral?
Changing your 0.1 to a 1/10, integrating, then taking the numerical value gives 0.954517.
Jul
4
comment Finding corresponding vertex from 3d to 2d
@Aky Good point. Makes it look a bit nicer.
Jul
2
comment Difference (or intersection) of two convex polyhedra
I haven't looked at it myself, but there is some stuff here.
Jun
16
comment Smooth Peter de Jong attractor
Here's an animation where $a_1 \in [-2,2]$.
Jun
16
comment Is this the expected behaviour from Partition when padding is inserted at the start of the list?
myPartition[d_, k_] := Partition[d, k, k, -Mod[Length@d, k], {}]
Jun
4
comment Complement of multisets
I tend to use rules quite a lot because I think it is very clear what they do (although I admit the answer here is quite obfuscated). And yes, the performance does degrade with larger lists. But we don't want to prematurely optimise.
May
26
comment Plotting John Conway's Hecatohedron
This?
May
20
comment Finding the intersection of curves in a one-parameter family
NSolve[f[0] && f[2]]?
May
8
comment Strange opacity behavior
This is an awful lot of code and pictures for people to process. I recommend creating a minimal working example which has the problem. This will encourage more answers, and in the process you can often discover the solution yourself.
May
8
comment Specify the color of a horizontal grid line in a plot
GridLines -> {{}, {{Exp[EulerGamma], Red}}}
May
8
comment How do I make the color of arrowheads in a graph different from the colors of the arrows?
Not easily as far as I can tell. It's just using the points that it gets passed. I'm not sure what the default EdgeShapeFunctions do to it.
May
7
comment How do I make the color of arrowheads in a graph different from the colors of the arrows?
Take a look at EdgeShapeFunction.
May
1
comment Manipulate for variable number of sliders
@denfromufa I'm not sure what you mean by that. Can you explain further?
Apr
30
comment What's going wrong with this button!
Dynamic@weights?
Apr
29
comment Mean Squared Deviation for Population Data
You are taking the n+1'th part. So when n == 14, you are trying to take the 15th part. But your list is not that long. Perhaps you need a strictly less than in your While condition?
Feb
24
comment Parallel numerically integrated function can't be plotted
It seems to me that plotting in that way is going to make a lot of redundant calculations. If you want the points at x = 0.5 and x = 1, you have to integrate from 0 to 0.5, and then integrate again from 0 to 1. But really to get that second point, we only need to add on the integral from 0.5 to 1. I'd be tempted to build up some points manually and then use a ListPlot. Also, your code works fine for me (apart from the extraneous comma).
Feb
18
comment invert system of two parametric ODEs and plot results of do-loop
Your Do loops as written have several missing brackets and incorrect capitalisation (Nsolve instead of NSolve). What's the numerical value for zf? NSolve gives a rule as a result, not a value which you can directly compare. Maybe you want Sow and Reap rather than Print.