================================== Top new questions this week: ================================== [Moving maximum function?]\url{http://mathematica.stackexchange.com/questions/40526/moving- maximum-function} How can I construct a moving maximum function? For example, if I have a list of 12 values: { 5, 6, 9, 3, 2, 6, 7, 8, 1, 1, 4, 7 } and I want to maximize over 3 values then the expected result would ... - asked by Tyler Durden (11 votes), answered by rasher (16 votes) ---------------------------- [AndersonDarlingTest and DistributionFitTest Leaking Memory]\url{http://mathematica.stackexchange.com/questions/40661/andersonda rlingtest-and-distributionfittest-leaking-memory} I believe AndersonDarlingTest and probably all other tests are keeping a copy of data somewhere and not freeing it: Quit[]; (*Must be run in different cell*) $HistoryLength = 0; memdata = ... - asked by Ajasja (8 votes), answered by Ajasja (2 votes) ---------------------------- [Faster list duplicate 'limiter']\url{http://mathematica.stackexchange.com/questions/40765/faster- list-duplicate-limiter} Given some list, e.g., {5, 3, 2, 3, 1, 0, 1, 3, 5, 5, 4, 5, 1, 2, 5, 2, 2, 0, 1, 4}, I need to limit the duplicates, if any, to an arbitrarily chosen number. The excess duplicates are to be chopped ... - asked by rasher (7 votes), answered by rasher (4 votes) ---------------------------- [When does a list contain only ones?]\url{http://mathematica.stackexchange.com/questions/40670/when-does-a -list-contain-only-ones} I am starting with a list of length n that contains all -1's. For instance, when n = 6 the list is {-1, -1, -1, -1, -1, -1}. I pick a random integer from 1 to n and toggle the element by multiplying ... - asked by bobbym (7 votes), answered by rasher (6 votes) ---------------------------- [Converting StringJoin to StringForm inside Hold]\url{http://mathematica.stackexchange.com/questions/40628/converting-s tringjoin-to-stringform-inside-hold} Let's say I have a piece of code: Hold[{code1, "asdad " <> ToString[testa] <> " adsd " <> ToString[testb], code2}] (*MWE ofc*) which I want to convert. Each ... - asked by Kuba (7 votes), answered by Leonid Shifrin (8 votes) ---------------------------- [Graph databases / Nosql with Mathematica]\url{http://mathematica.stackexchange.com/questions/40731/graph -databases-nosql-with-mathematica} I am very new to mathematica but it looks like an interesting language and I would like to explore it for a future project to create a web search engine. It seems like it would be fairly well suited ... - asked by user2433617 (6 votes), answered by Mike Honeychurch (2 votes) ---------------------------- [Counting adjacent elements in a Matrix?]\url{http://mathematica.stackexchange.com/questions/40593/counting- adjacent-elements-in-a-matrix} To start, I have a situation where I have some matrix, for example $$ A=\left[ \begin{matrix} 4&2&2&3&3\\ 2&3&1&2&3\\ 3&0&4&0&4\\ ... - asked by Alizter (6 votes), answered by Rojo (3 votes) ================================== Greatest hits from previous weeks: ================================== [Automatic e-mail/text message when a calculation has finished?]\url{http://mathematica.stackexchange.com/questions/30167/automat ic-e-mail-text-message-when-a-calculation-has-finished} Sometimes Mathematica takes quite a while to finish calculations and it would be convenient to be able to move away from the computer while it is working. I was wondering if there is any "clever" hack ... - asked by Paco (36 votes), answered by rm -rf (41 votes) ---------------------------- [How to check if a 2D point is in a polygon?]\url{http://mathematica.stackexchange.com/questions/9405/how-to-ch eck-if-a-2d-point-is-in-a-polygon} Background: I use code from An Efficient Test For A Point To Be In A Convex Polygon Wolfram Demonstration to check if a point ( mouse pointer ) is in a ( convex ) polygon. Clearly this code fails for ... - asked by ndroock1 (42 votes), answered by kguler (30 votes) ================================== Can you answer these? ================================== [Schedule programing problem with integer linear programming]\url{http://mathematica.stackexchange.com/questions/40739/sched ule-programing-problem-with-integer-linear-programming} I know how to model this question on paper, but I don't know how doing it in Mathematica. Imagine , there is a university student who want to choose courses for this semester and he got the ... - asked by DSaad (4 votes) ---------------------------- [Cannot compile OpenGL code in Mathematica (vc2010-windows 8.1)]\url{http://mathematica.stackexchange.com/questions/40705/cannot-compi le-opengl-code-in-mathematica-vc2010-windows-8-1} LinkError of OpenGL My enviroment is windows 8.1 x64, Mathematica 9.0.1, opengl 1.1 targetDirectory = "E:\\Users\\Hyper\\Documents\\OpenGL"; sourceDirectory = ... - asked by HyperGroups (1 vote) ---------------------------- [BubbleChart bubble scale depends on y position]\url{http://mathematica.stackexchange.com/questions/40576/bubblech art-bubble-scale-depends-on-y-position} I noticed that the scaling of bubbles in the BubbleChart function depends on the y position of a bubble. Compare these two examples. BubbleChart[{{60.0, 20.0, 50.0}, {60.0, 90.0, 50.0}}, ... - asked by Jeff Lapides (1 vote)