1,319 reputation
514
bio website quantum.at
location Vienna, Austria
age
visits member for 2 years, 6 months
seen 1 hour ago

PhD student in Theoretical Physics

Research interests include Quantum Optomechanics and Quantum Optics


Nov
11
comment Bug in RepeatedNull?
Just an observation: f[s : {_[___] ...}] works in the "special case", but does not do what you want in general...
Nov
11
comment Bug in RepeatedNull?
Oh, now I know what you are saying... sorry for that! Now I'm puzzled myself :)
Nov
11
comment Bug in RepeatedNull?
@rm-rf Can do, I thought we might want to keep the OP puzzling for a bit :)
Nov
11
comment Bug in RepeatedNull?
That's not a problem with the pattern. Try List @@@ Sequence[]
Oct
10
comment When should I use Apply (or Function) and when @@ (or &)?
Leonid, I just read the last paragraph from the link to your book you provided above and now I'm wondering: Is that the convention you use when you write packages, i.e., not using shorthand notation and explicitly specifying Heads -> False?
Oct
2
comment Fastest way to do vector / matrix multiplication with constant matrix
On my machine with Mathematica V9 this is indeed nearly one order of magnitude faster than the Table approach.
Sep
20
comment How to declare a function that uses local variables of a module outside this module?
@Rojo Ok, so you are saying that "deconstructing" the expression during pattern matching/replacing creates a copy just as applying the same procedure in the body would. That makes complete sense of course! Thanks
Sep
20
comment How to declare a function that uses local variables of a module outside this module?
@Rojo That's very interesting, I wasn't aware of that! Is there an simple explanation why it behaves like that?
Sep
20
comment How to declare a function that uses local variables of a module outside this module?
@Rojo Just to make sure I understand Mathematica's memory handling correctly: In the pass-by-value case, if the passed expression is not "changed" in the function (e.g. you only extract parts of the expression by Part[xx,1] and process that further), no copy is created, right? In other words, just the fact that you pass an expression by-value does not mean you use more memory...
Sep
20
comment Can one identify the design patterns of Mathematica?
@Daniel and Leonid What would be a good list-like data structure if I want to remove elements from arbitrary positions? Say I have a list, a function selects an element from the list to process it further and removes it from the list. Then rinse and repeat until the list is empty. (I hope that wasn't too vague.)
Aug
27
comment How can I get Mathematica to recognize equality of symbolic matrix expressions?
I was wrong, sorry... I thought one could construct an example where T-Transpose@T is in the null-space of X, but this is not possible. I should have thought further first. Sorry for the fuzz!
Aug
27
comment How can I get Mathematica to recognize equality of symbolic matrix expressions?
@Nasser Huh, but that's how $Assumptions are usually used for, no? The only question is if it will be helpful for the OP, as kirma pointed out...
Aug
27
comment How can I get Mathematica to recognize equality of symbolic matrix expressions?
@Nasser I don't think that the OP means they are equal in general, but more in a $Assumptions kind of way.
Aug
17
comment Solving Stochastic differential equation
@b.gatessucks I guess it can be, but I never worked with stochastic partial differential equations before. You probably use standard (non-stochastic) integration schemes for the spatial dimension and you use the extended (stochastic) ones for the time dimension.
Aug
16
comment Why does Simplify with TimeConstraint return Removed[$$Failure]?
Great effort :)
Aug
16
comment Why does Simplify with TimeConstraint return Removed[$$Failure]?
Very peculiar... How did you track down this example?
Aug
16
answered Solving Stochastic differential equation
Aug
16
comment Solving Stochastic differential equation
However, I just realized that in your case the Ito and the Stratonovich form coincide. Still, you should be aware of the fact that there is a difference.
Aug
16
comment Solving Stochastic differential equation
It would be important to know if this should be a Ito or a Stratonovich SDE. I guess it's the latter, so you probably have to use StratonovicProcess in @b.gatessucks answer below.
Aug
14
revised Count consecutive occurrences in a list above a certain value
deleted 197 characters in body