5.7 Tuesday, November 15, 2016

================================== 
Top new questions this week: 
==================================

[Why (and when) does pattern matching with f[__] perform MUCH more quickly than _f?] http://mathematica.stackexchange.com/questions/130984/why-and-when-does-pattern-matching-with-f-perform-much-more-quickly-than

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?] http://mathematica.stackexchange.com/questions/131101/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?] http://mathematica.stackexchange.com/questions/130889/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] http://mathematica.stackexchange.com/questions/130821/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?] http://mathematica.stackexchange.com/questions/130787/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 (8 votes)

================================== Greatest hits from previous weeks: ==================================

[How can Mathematica be used to create images like these?] http://mathematica.stackexchange.com/questions/118992/how-can-mathematica-be-used-to-create-images-like-these

Here are two examples of artistic image interpolation using just black lines:

TRIANGULATION: ANGULAR CELEBRITIES DRAWN WITH A PEN Interpolation for Triangulation-represented Digital Image

The ...

- asked by R Hall (28 votes), answered by MarcoB (29 votes)

—————————-

[How do you make a Neural Net?] http://mathematica.stackexchange.com/questions/123458/how-do-you-make-a-neural-net

In the new Mathematica release (v11), NeuralNetworks is one of the new main features. However, the documentation isn’t that clear on what function should be used in a Net.

The documentation on ...

- asked by JHM (22 votes), answered by Searke (24 votes)

================================== Can you answer these? ==================================

[Understanding the structure of an InterpolatingFunction] http://mathematica.stackexchange.com/questions/131063/understanding-the-structure-of-an-interpolatingfunction

FunctionInterpolation[x^2, {x, 0, 9}] // InputForm

returns:

InterpolatingFunction[ 0., 9., 5, 3, 0, 13, 4, 0, 0, 0, 0, Automatic, , , False, 0., 0.75, 1.5, 2.25, 3., 3.75, ...

- asked by anderstood (1 vote)

—————————-

[Is it possible to create .stp 3D model from Graphics3D?] http://mathematica.stackexchange.com/questions/130883/is-it-possible-to-create-stp-3d-model-from-graphics3d

I want to create some 3D solid model by Mathematica, and then export it into stp (step) format for further finite element or finite volume analysis in Fluent/ANSYS or Abaqus.

But so far to me, it ...

- asked by user6043040 (3 votes)

—————————-

[Time constrained loop unit] http://mathematica.stackexchange.com/questions/131159/time-constrained-loop-unit

I have a particularly difficult loop, in that it consists of two variables looping and sowing the result if a criteria is met. Overall it works for me, but some certain values for my variables take ...

- asked by Castle (2 votes)