6.20 Tuesday, August 18, 2015

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

[Given an exact formula, how can Mathematica find a probability distribution whose PDF matches it?](http://mathematica.stackexchange.com/questions/91408/given-an-exact-formula-how-can-mathematica-find-a-probability-distribution-whos)

So, given some data, Mathematica 10.2 can now attempt to figure out what probability distribution might have produced it. Cool! But suppose that, instead of having data, we have something that is in ...

- asked by Seth Chandler (19 votes), answered by Vitaliy Kaurov (12 votes)

—————————-

[Improving speed of code computing number of nonrepeating partitions] (http://mathematica.stackexchange.com/questions/91613/improving-speed-of-code-computing-number-of-nonrepeating-partitions)

I need to answer the following for a number of parameters: How many ways can the integer \(k\) be written as a sum of \(n\) different integers ranging from \(1\) to \(m\)?

My initial attempt was the ...

- asked by jorgen (16 votes), answered by ciao (14 votes)

—————————-

[Implementing the PCG random number generator] (http://mathematica.stackexchange.com/questions/91497/implementing-the-pcg-random-number-generator)

PCG ("permuted congruential generator") is a recently-introduced random number generator.

PCG is a family of simple fast space-efficient statistically good algorithms for random number generation. ...

- asked by blochwave (15 votes), answered by Guess who it is. (13 votes)

—————————-

[Use Compile to improve performance] (http://mathematica.stackexchange.com/questions/91787/use-compile-to-improve-performance)

I’ve recently discovered Compile as a way to optimize my code. I wrote a program to learn something new about Compile. I have a function that creates a vector in the following form:

...

- asked by Vanille (14 votes), answered by halirutan (19 votes)

—————————-

[Why does’t SeedRandom work here?] (http://mathematica.stackexchange.com/questions/91523/why-doest-seedrandom-work-here)

From the docs on SeedRandom,

SeedRandom[] resets the generator, using as a seed the time of day and certain attributes of the current Wolfram System session.

This means that every time I use ...

- asked by Szabolcs (14 votes), answered by Mr.Wizard (2 votes)

—————————-

[How to implement a more efficient inverse triangular recursion?] (http://mathematica.stackexchange.com/questions/91610/how-to-implement-a-more-efficient-inverse-triangular-recursion)

Consider the following inverse triangular formula

$$\left( 
\begin{array}{ccccc} 
   &   &   &   & N_{i-p,p}\left(u_0\right) \\ 
   &   & N_{i-2,2}\left(u_0\right) &   &

- asked by Shutao Tang (11 votes), answered by xzczd (7 votes)

—————————-

[Nearest Kronecker Product] (http://mathematica.stackexchange.com/questions/91651/nearest-kronecker-product)

Some people (see The ubiquitous Kronecker product by Van Loan) have worked on finding two matrices \(\mathbf A\),\(\mathbf B\) of specified size whose tensor product \(\mathbf A\otimes \mathbf B\) is closest ...

- asked by pdmclean (10 votes), answered by Guess who it is. (10 votes)

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

[How to make use of Associations?] (http://mathematica.stackexchange.com/questions/52393/how-to-make-use-of-associations)

I have been curious about it for long. Now that Mathematica 10 arrives, I think it’s time to ask the question: How the new Association data structure would be used to improve Mathematica programming?

...

- asked by Yi Wang (87 votes), answered by Leonid Shifrin (96 votes)

—————————-

[3D surface that looks like a virus] (http://mathematica.stackexchange.com/questions/74193/3d-surface-that-looks-like-a-virus)

I have been recently using Mathematica for composing animations that are part of the supplementary information of my papers.

I am currently trying to build an animation that involves a viral ...

- asked by user2098 (16 votes), answered by Chris Degnen (18 votes)

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

[Restarting random number generators where you left off] (http://mathematica.stackexchange.com/questions/91612/restarting-random-number-generators-where-you-left-off)

I have code that uses both RandomReal and RandomInteger a number of times to produces a sequence of \(n\) data sets. After closing the notebook and quitting the kernel, I would like to be able to start ...

- asked by user26718 (7 votes)

—————————-

[Swinging Beam example from Help. Not Understanding/Not Working] (http://mathematica.stackexchange.com/questions/91393/swinging-beam-example-from-help-not-understanding-not-working)

To help me understand finite element analysis with Mathematica I have been reading the Finite Element Method User Guide in Help and am stuck on the example in Coupled PDEs. Here there is a static beam ...

- asked by Hugh (2 votes)

—————————-

[Mathematica 10 Audio Export Issue] (http://mathematica.stackexchange.com/questions/91649/mathematica-10-audio-export-issue)

Summary of the problem: When exporting data as an audio file (AIFF/WAV etc.), there appears to be unwanted scaling and offset in the data such that the minimum and maximum values are forced to be -1 ...

- asked by Rahul (2 votes)