My Girlfriend is going to prison...Save her with Math
How to use the iterator in Mathematica
SquaresR memory leak?
SetOptions locally?
Understanding simple numerical calculation
How to work with Date calculations?
How to riffle matrices
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)
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)
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)
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)
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)
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)
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)