38,109 reputation
554156
bio website
location
age
visits member for 2 years, 4 months
seen 3 hours ago

Jun
25
comment Drop row if sum of part of row is equal to zero
@b.gatessucks, or DeleteCases[A, {_, _, z__ /; +z == 0}]
Jun
25
comment Drop row if sum of part of row is equal to zero
Use Equal (==) to test for equality, not Set (=)
Jun
24
comment Visualization: elliptical insights into data sets…
Pam, if you've come up with some code that answers the question, please post it as an answer (it's allowed, in fact positively encouraged, to answer your own question).
Jun
23
comment Solving a system with three equations and two variables
Voting to close as this is just basic errors of syntax
Jun
23
comment Solving a system with three equations and two variables
Try NSolve[{(Xsps[x, r]/Xppp[x, r])^2 == (0.076/0.120)^2, (Xssp[x, r]/Xppp[x, r])^2 == (0.076/0.102)^2}, {x, r}]
Jun
21
comment Improving ListContourPlot mesh triangulation
Look up FindDivisions for choosing tick positions.
Jun
14
comment How can I list all the 'countries 4000 km far from current location'?
@Szabolcs, I think this is an interesting question (we don't have any other answers on the site using GeoDestination) so I edited it to not be about W|A any more.
Jun
14
comment How can I list all the 'countries 4000 km far from current location'?
Looks like version 10 has this built in :-)
Jun
14
comment How can I list all the 'countries 4000 km far from current location'?
The reversal of lat, long is only for displaying the graphics. Perhaps it is best to say don't reverse any coordinates in loc or bounds, and use Polygon[Reverse /@ bounds] in the graphics.
Jun
14
comment How can I list all the 'countries 4000 km far from current location'?
Very nice, but to get the correct shape you need to keep loc as {lat, long} and do the Reverse after GeoDestination, i.e. bounds = Table[Reverse@GeoDestination[loc,...
Jun
12
comment Devising a sparse array rule
SparseArray[A -> 77] ?
Jun
11
comment Can I use Map here rather than Table?
Or Import[#1, {"Sheets", #2}] & ~MapThread~ {fileNames, sheetNames}
Jun
11
comment How would you efficiently implement BinListsBy?
@Mr.Wizard, this one?
Jun
11
comment Thread over uneven (ragged) expressions with full functionality?
@Rojo, thanks - good points.
Jun
10
comment Smooth 4D (3D + color) plot from discrete points
I think you missed the bit where you get from nf to colfun
Jun
10
comment State “i” goes to state “j”
@MarianadaCosta, the symbol | is a shorthand for Alternatives, so as Paxinum said, "1"|"4" is a pattern which matches either "1" or "4". You may have no use for this, but I thought it worth mentioning.
Jun
9
comment Thread over uneven (ragged) expressions with full functionality?
Thread2[{{1, 2, 3, 4, 5}, {6, 7, 8}}] gives a Thread::tdlen error.
Jun
8
comment Trying to plot the trajectory of a particle using its Lagrangian; the plot is wrong
Try using traj = ... instead of traj := ...
Jun
7
comment Can I change Legend text in a stylesheet?
@Mr.Wizard, I had a look but couldn't see where the explicit font setting was applied. I think it must be somewhere in MakeBoxes.
Jun
6
comment Pattern evaluation in nested function call
@Ramiro, yes they're global symbols. Sometimes it's very useful to use Module symbols like that, it's not necessarily a bad thing. You just have to wary of leaking memory if the Module is evaluated many times because it will create a new unique symbol each time. In this case it was more just that there was no need to use symbolic parameters in the Function when the numerical values were already known.