Reputation
1,888
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
7 18
Newest
 Yearling
Impact
~17k people reached

Oct
23
comment How to solve a linear system by LinearSolve when the variables are duplicate?
I agree. It was just that you so confidently calling it "fold-over" in your comment made me feel like I should have known that it was actually a thing :-)
Oct
23
comment How to solve a linear system by LinearSolve when the variables are duplicate?
Is fold-over the "official" name for this operation?
Oct
23
comment How to solve a linear system by LinearSolve when the variables are duplicate?
Cool, Internal`PartitionRagged can be very useful!
Oct
23
comment How to solve a linear system by LinearSolve when the variables are duplicate?
You can partition your x-vector as $(x,y,x)$, where $x=(x_0,x_1,x_2)$ and $y=(x_3,x_4)$, and your matrix mat in a similar way (3x3 block matrix). Multiplying out the blocks and collecting $x$ and $y$ together will give you the linear system of reduced size that you can feed to LinearSolve
Oct
22
comment Fluctuations as initial conditions
So you are saying you want to use random initial conditions? Look at RandomReal et al.
Oct
22
comment Making large calculation results persistent
@matheorem I can reproduce the crash on saving the notebook. This can be improved by shortening long output in the object (see updated code). There is still an overhead on saving large data. I really don't know what is going on there though.
Oct
22
revised Making large calculation results persistent
added 314 characters in body
Oct
21
comment Making large calculation results persistent
@matheorem I can't reproduce either of these problems. What did you use as input data?
Oct
21
revised Making large calculation results persistent
fixed code; added 12 characters in body
Oct
21
answered Making large calculation results persistent
Oct
19
comment Why does ParallelDo return wrong number of results
@george2079 No, CriticalSection is a bit counter-intuitive, see man page.
Oct
19
answered Why does ParallelDo return wrong number of results
Oct
16
comment Replace variable with # and pass function body as an argument to a function
For the "replace par1 with #" part you can use Function[par1,Log[10 par1]]. But Bob Hanlon's answer might be better...
Sep
26
comment Use Kalman filter to predict
@gwr ...which is probably much harder to answer than the original question...
Sep
25
comment Use Kalman filter to predict
... or maybe even Signal Processing
Sep
9
comment Restrict domain of a function?
@dionys I can only guess what the OP really wants, and I certainly don't have an answer to his question. Fact is that he states twice in his post that he is trying to restrict the range of a function, not the domain. So changing "range" to "domain" in the title, but keeping the original wording in the body doesn't help to clarify the question. If anything it adds to the confusion as now one needs to figure out where the two contradicting statements came from.
Sep
9
comment Restrict domain of a function?
@dionys Why did you change "range" to "domain" in the title?? This seems to be wrong!
Aug
25
comment Can I memoize retroactively?
...because when you say you want to use memoization only "in a specific file" I would suggest to just use the definition of f2 from your post...
Aug
25
comment Can I memoize retroactively?
I'm still not sure I understand... You are saying you want to switch on memoization on the fly?
Aug
25
comment Logarithm of a matrix in base 2?
Nice! Thanks for the background material!