7,242 reputation
1450
bio website
location
age
visits member for 2 years, 10 months
seen 2 days ago

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.
Feb
12
comment Problem With 3D Contour Plot
What's wrong with that result? What were you expecting?
Feb
10
comment How can I improve Do loop?
DayName is (still) rather slow. See here for a discussion. (Used to be called DayOfWeek before version 9).
Jan
23
comment Reading binary strings from file as strings
@Ajasja It's because it's simple. Easy to understand the problem and easy to understand the answer. The other question/answer is big and intimidating.
Jan
16
comment How to get a rule for, e.g., (x + y) to apply to (-x - y), etc.?
Use FullForm[x + y] and FullForm[-x - y] to see how those two expressions are different (or TreeForm if you are feeling daring). ReplaceAll is a dumb function that is not going to transform your expression for you. It may not be friendly, but it is reliable. In general, as Kuba has suggested, it's better to replace atomic elements.
Dec
10
comment calculating a sequence of functions using iteration
Actually I'm not sure how one would effectively memoise this. How do you cope with the conditions on the argument that isn't memoised?
Nov
20
comment 3D Plot of .txt File of the Surface Plotting Variety
I probably wasn't clear in the answer. Import["C:\\yourfile.dat", "Table"] will read the file directly. I just used ImportString as a toy example.
Nov
18
comment Fitting a function
You could use a rule fit /. m_ t + c_ :> m or pick out the right part fit[[2, 1]]
Oct
17
comment Too much whitespace in a GraphicsGrid containing Legended Plots
You could try Grid instead of GraphicsGrid.
Oct
17
comment Newton-Raphson Method and the Van der Waal Equation Coding question
Looks like you actually want a root this time instead of the minimum. Change FindMinimum back to FindRoot. Also don't forget to adjust your PlotRange.
Oct
17
comment Newton-Raphson Method and the Van der Waal Equation Coding question
Starting conditions were found by trial and error: minimise with a starting value function, plot the results, make up a new function that approximates the good bits of the plot, repeat. See the edit for a better way to do it.
Oct
15
comment Customizing & finding intersection points in polar plot
That's why I'd like to know exactly what the theorem is. As far as I can tell, the curve does not go through equally spaced points at those angles (aside from my ability to count to eight).
Oct
14
comment Customizing & finding intersection points in polar plot
That's not a golden spiral. This might be PolarPlot[GoldenRatio^(2 n/\[Pi]), {n, 0, 2 \[Pi]}]. Can you quote or link to the theorem?
Oct
10
comment How can I speed up my numerical integration?
And should x0 be -50 or 10^-50?