4.4.1 Top new questions this week

4.4.1.1 My Girlfriend is going to prison...Save her with Math
4.4.1.2 How to use the iterator in Mathematica
4.4.1.3 SquaresR memory leak?
4.4.1.4 SetOptions locally?
4.4.1.5 Understanding simple numerical calculation
4.4.1.6 How to work with Date calculations?
4.4.1.7 How to riffle matrices
4.4.1.1 My Girlfriend is going to prison...Save her with Math

http://mathematica.stackexchange.com/questions/135937/my-girlfriend-is-going-to-prison-save-her-with-math

 
Salacious title, but true story. 
 
dmethyl1 = { 
{0, 0}, 
{.25, 1}, 
{.5, 7}, 
{1, 26}, 
{1.5, 40}, 
{2, 45}, 
{2.5, 45}, 
{3, 44}, 
{3.5, 44}, 
{4,  ...
 

- asked by Prisoners Dilema (35 votes), answered by bobthechemist (22 votes)

4.4.1.2 How to use the iterator in Mathematica

http://mathematica.stackexchange.com/questions/135916/how-to-use-the-iterator-in-mathematica

 
I find the Mathematica has the iterator data structure. We can build some iterators like this: 
 
Constant iterator 
 
GeneralUtilities`ConstantIterator[5] 
 
 
 
 
Key value iterator 
 
...
 

- asked by yode (15 votes), answered by Michael E2 (15 votes)

4.4.1.3 SquaresR memory leak?

http://mathematica.stackexchange.com/questions/135781/squaresr-memory-leak

 
I have tried the following code in Mathematica 11.0.1.0 on my MacBook: 
 
$HistoryLength = 0; 
ClearAll["Global`*"]; 
ClearSystemCache[]; 
MemoryInUse[] 
 
AbsoluteTiming[Do[SquaresR[2, i], {i, 1000000}];] 
 
...
 

- asked by outofmemory (12 votes), answered by Mr.Wizard (18 votes)

4.4.1.4 SetOptions locally?

http://mathematica.stackexchange.com/questions/136005/setoptions-locally

 
Is there a way to SetOptions locally? For example, I have a Module and inside it I am doing a lot of Plots with similar options. If I do a SetOptions[Plot, ...] inside the Module, the change  ...
 

- asked by becko (11 votes), answered by J. M. (12 votes)

4.4.1.5 Understanding simple numerical calculation

http://mathematica.stackexchange.com/questions/135636/understanding-simple-numerical-calculation

 
I am trying to understand why N[0.1]//FullForm returns 0.1' (A). 
Indeed, $0.1$ in base two is $0.000110011001100110011...$. If I truncate this number to the first 52 digits and convert it back to base  ...
 

- asked by anderstood (11 votes), answered by Michael E2 (18 votes)

4.4.1.6 How to work with Date calculations?

http://mathematica.stackexchange.com/questions/135713/how-to-work-with-date-calculations

 
I have never worked using the DateObject function 
 
But I suspect there must be a (easy) way of doing it. 
 
I want to find out, when in the future, from which point, that the cumulative days of not  ...
 

- asked by Chen Stats Yu (10 votes), answered by Simon Woods (12 votes)

4.4.1.7 How to riffle matrices

http://mathematica.stackexchange.com/questions/135848/how-to-riffle-matrices

 
I have four matrices 
 
m = {{M11, M12, M13}, {M21, M22, M23}, {M31, M32, M33}}; 
n = {{N11, N12, N13}, {N21, N22, N23}, {N31, N32, N33}}; 
p = {{P11, P12, P13}, {P21, P22, P23}, {P31, P32, P33}}; 
q =  ...
 

- asked by Kowalski (8 votes), answered by Carl Woll (11 votes)