================================== Top new questions this week: ================================== [Kernel inexplicably hangs if I define a pure function without suppressing output]\url{http://mathematica.stackexchange.com/questions/35629/kernel-ine xplicably-hangs-if-i-define-a-pure-function-without-suppressing-output} Save any unsaved work before trying as it may crash Mathematica and other programs In v9.0.1.0 on OSX 10.8.5, if I start a new session and define two functions f1P = Sin[#^Sin[Sqrt[Gamma[#]]]] ... - asked by gpap (14 votes), answered by m_goldberg (4 votes) ---------------------------- [Bug in RepeatedNull?]\url{http://mathematica.stackexchange.com/questions/36850/bug -in-repeatednull} RepeatedNull appears to be buggy (version 8.0). Define f as follows: In[1]:= f@s:{h_@___...} := List @@@ s f is intended to accept (possibly empty) List of non-atomic (possibly empty) expressions ... - asked by Akater (13 votes), answered by m_goldberg (5 votes) ---------------------------- [Equivalent Nested Loop Structure]\url{http://mathematica.stackexchange.com/questions/35560/equival ent-nested-loop-structure} Consider the following examples: Flatten @ Table[ f[a, b, c], {a, 1, 3}, {b, 1, 3}, {c, 1, 3}] == f @@@ Tuples[ Range[3], 3] Flatten @ Table[ If[ a != b != c, f[a, b, c], Unevaluated[]], ... - asked by expression (12 votes), answered by Ray Koopman (2 votes) ---------------------------- [Finding the volume of a sphere using the Monte Carlo algorithm]\url{http://mathematica.stackexchange.com/questions/35683/finding -the-volume-of-a-sphere-using-the-monte-carlo-algorithm} I used the following code to find the volume of the sphere $x^2+y^2+z^2 = 1$ in the first octant: McVolume[Num_] := Module[{hit, miss, index, x, y, z}, hit = 0; miss = 0; For[index = 1, index ... - asked by johny (12 votes), answered by Szabolcs (15 votes) ---------------------------- [Making code version aware]\url{http://mathematica.stackexchange.com/questions/36806/making-code -version-aware} Mathics, a free Mathematica-compatible project has been recently launched. It provides a subset of the functions and capabilities of Mathematica at a slower pace. This opens us the tantalizing ... - asked by magma (11 votes), answered by magma (5 votes) ---------------------------- [Partitioning a list of numbers the Mathematica way]\url{http://mathematica.stackexchange.com/questions/36867/partitioning- a-list-of-numbers-the-mathematica-way} I have two sorted lists, one list will be called the "fences" and the other the "values" Fences could be: $\{1, 5, 9, 14\}$ Values could be $\{-1, 1, 3, 4, 6, 9, 10, 13, 14, 15\}$ I want to ... - asked by muzzlator (10 votes), answered by Ray Koopman (18 votes) ---------------------------- [Any way to make my equations look better, more Latex like?]\url{http://mathematica.stackexchange.com/questions/36697/any-way-to- make-my-equations-look-better-more-latex-like} I find that the equations I write in Mathematica are not always publication quality. Here is a typical example: If I copy as Latex, then I get the following code: \frac{\sum _{i=1}^N \frac{(k|k) ... - asked by Tyler Durden (9 votes), answered by Mike Honeychurch (9 votes) ================================== Greatest hits from previous weeks: ================================== [How to manipulate 2D plots?]\url{http://mathematica.stackexchange.com/questions/7142/how-to-mani pulate-2d-plots} When it comes to visual analysis, large datasets or data with intricate internal details often makes plotting in 2D useless, as the outcome is either just a fraction of the full dataset, or no details ... - asked by Istvan Zachar (58 votes), answered by Istvan Zachar (56 votes) ---------------------------- [Programmatic approach to HDR photography with Mathematica image processing functions]\url{http://mathematica.stackexchange.com/questions/9342/programm atic-approach-to-hdr-photography-with-mathematica-image-processing-funct > } The High dynamic range imaging (HDR or HDRI) direction in photography and image processing became very popular recently. Besides obvious photo art applications (see examples), there are many great ... - asked by Vitaliy Kaurov (44 votes), answered by Simon Woods (30 votes) ================================== Can you answer these? ================================== [How can I set constraints on parameters in NelderMeadMinimize package?]\url{http://mathematica.stackexchange.com/questions/35651/how-can- i-set-constraints-on-parameters-in-neldermeadminimize-package} I read about NelderMeadMinimize package. How can I set constraints on the parameters? For example I want to minimize an equation with 10 parameters such as {a1, a2, ....}. I want to put the condition ... - asked by Soodeh Z. (1 vote) ---------------------------- [WhenEvent method with 3 conditions]\url{http://mathematica.stackexchange.com/questions/36869/whenev ent-method-with-3-conditions} I am trying to solve system of differential equations below $x''(t)=-2.25cos(1.5t)-x(t)-x'(t)$ $y''(t)=-1.125cos(1.5t)-4y(t)-y'(t)$ for $x>(1+y)$ then $z'(t)=x(t)-(1+y(t))$ for $|x|<(1+y)$ ... - asked by Dadan Ari Wibowo (1 vote) ---------------------------- [Caching data in Mathematica package]\url{http://mathematica.stackexchange.com/questions/36875/caching-d ata-in-mathematica-package} Consider the following: m=Quantity[1,"meter"] If I run the package, it will return 1m But when I load the package, the package is re-evaluated meaning, that internet i required. Is it possible to ... - asked by OskarNS (1 vote)