Why (and when) does pattern matching with f[__] perform MUCH more quickly than _f?
Getting wrong limit with Bessel
Join lists by observing x-value
How to distribute Mathematica packages as paclets?
Does function call via @ ignore HoldFirst attribute?
Graph visualization: Leave gap between vertex and endpoint of edge
Help finding the centre of a faint, incomplete circle?
Why (and when) does pattern matching with f[__] perform MUCH more quickly than _f?
Consider this expression in Mathematica 10.3 (and above) on MacOS X: expr = a b c d e f g h i j k l m n o p q r s t myG[u] myF[a, b] Now compare the time it takes to apply the following ...
- asked by QuantumDot (22 votes), answered by WReach (17 votes)
Getting wrong limit with Bessel http://mathematica.stackexchange.com/questions/130741/getting-wrong-limit-with-bessel
I computed a following limit (related to the asymptotic expansion of the sequence A000009 - number of partitions of n into distinct parts) Expand[Limit[((( BesselI[1, (Sqrt[1/24 + n] ...
- asked by Vaclav Kotesovec (11 votes), answered by Akku14 (9 votes)
Join lists by observing x-value http://mathematica.stackexchange.com/questions/130903/join-lists-by-observing-x-value
Hi everybody I have as a small test with two datasets (normally I have 100 datasets with 4100 brackets): Dataset1={{20,1},{30, 1.3}, {40, 0.4}, {50, 0.9}} Dataset2={{30, 1.2}, {40, 1}, {50, 0.4}, ...
- asked by Jacccy (10 votes), answered by ubpdqn (13 votes)
How to distribute Mathematica packages as paclets? Mathematica does have a nice package manager. Packages are called paclets, and they can be managed using the functions from the PacletManager` context. How can I package up my own packages as ...
- asked by Szabolcs (9 votes), answered by Szabolcs (7 votes)
Does function call via @ ignore HoldFirst attribute? I was trying to test whether using func[x,y] is the same as func[#,y]&@x: SetAttributes[test, HoldFirst] test[1 + 2 - 3, 5 - 5] test[#, 5 - 5] &@(1 + 2 - 3) test[1 + 2 - 3, 0] ...
- asked by Ruslan (8 votes), answered by m_goldberg (9 votes)
Graph visualization: Leave gap between vertex and endpoint of edge
This is a nice graph: g = CycleGraph[4]; Graph[g, VertexCoordinates -> {{0, 0}, {0, 1}, {1, 1}, {1, 0}}, VertexLabels -> Placed["Name", Center], VertexSize -> Medium, EdgeShapeFunction ...
- asked by cyrille.piatecki (8 votes), answered by kglr (12 votes)
Help finding the centre of a faint, incomplete circle? so I found a program in the answers to this question that I thought was brilliant, so here it is applied to my situation: I have the image and here's the code: ...
- asked by Mason 8votes