Partitioning a number into consecutive integers
Why is my GIF shaky?
Can Mathematica edit large binary files in-place?
Solving chess bishop problem
How to get such rule with a elegant method
Pseudo-currying in one line
How to create a multi-graphics plot (i.e. the decomposition of phase plane portrait) with well-organized structure?
Partitioning a number into consecutive integers Consider n=45; then $$1+2+3+4+5+6+7+8+9=45$$ $$5+6+7+8+9+10=45$$ $$7+8+9+10+11=45$$ $$14+15+16=45$$ $$22+23=45$$ Question: how to find all representations of a given positive integer n as a sum of ...
- asked by corey979 (17 votes), answered by corey979 (19 votes)
Why is my GIF shaky? http://mathematica.stackexchange.com/questions/134272/why-is-my-gif-shaky
As you can see, the circles are shaking vertically as they approaching each other. Why is that? The code: g = Table[ Graphics[{Thickness[0.01], Table[{ Circle[{0 + x, 0}, r], ...
- asked by Jason (13 votes), answered by Sumit (10 votes)
Can Mathematica edit large binary files in-place? I have a very large binary data file (several hundred GB) which I would like to edit using Mathematica. The only edits required are a few isolated byte replacementsno insertions or deletions. Is it ...
- asked by David Zhang 12votes Solving chess bishop problem http://mathematica.stackexchange.com/questions/134218/solving-chess-bishop-problem
I have generalized the problem in this way where I have a list list=Tuples[Range[8],2] I want to find the largest sublist in which the addition of the two entries for any two elements of the ...
- asked by m. bubu (10 votes), answered by ubpdqn (11 votes)
How to get such rule with a elegant method http://mathematica.stackexchange.com/questions/134227/how-to-get-such-rule-with-a-elegant-method
I have two lists: list={{1,2,3,5},{5,3,9,11,12},{5,9,10,16}}; list2={{7,89},{96,5},{-6,-98}}; This is the expected result. {{1->{7,89},2->{7,89},3->{7,89},5->{7,89}}, ...
- asked by yode (9 votes), answered by Mr.Wizard (9 votes)
Pseudo-currying in one line http://mathematica.stackexchange.com/questions/134315/pseudo-currying-in-one-line
Often when I'm writing OOP code using an object-manager association I find myself doing something akin to currying the arguments to some form of delegate object or head. (Building a one-argument ...
- asked by MB1965 (8 votes), answered by Bob Hanlon (8 votes)
How to create a multi-graphics plot (i.e. the decomposition of phase plane portrait) with well-organized structure?
Background I am trying to create a three-graphics plot using the command GraphicsGrid[] to show the decomposition of the phase plane portrait; unfortunately, the plot created is very ugly since the ...
- asked by Liang.X (8 votes), answered by Sumit (8 votes)