1,289 reputation
514
bio website quantum.at
location Vienna, Austria
age
visits member for 2 years, 5 months
seen 16 hours ago

PhD student in Theoretical Physics

Research interests include Quantum Optomechanics and Quantum Optics


Jul
23
comment Is there a list of Octave functions mapped to the related Mathematica one?
@Mr.Wizard Will do, I just wasn't sure what you'd want to do with solution 3 :) Anyway, I agree that it is probably really hard to maintain this list in a sensible way. MATLAB is heavily overloaded and Mathematica is too.
Jul
23
comment Is there a list of Octave functions mapped to the related Mathematica one?
@Mr.Wizard I just realized that your first example is not correct (so is the zeros one): ones(n) creates a n-by-n matrix of 1s! The equivalent to your commands is ones(1,n) or ones(n,1) depending on the interpretation.
Jul
23
comment Automatically growing lists as in MATLAB?
Sorry if the following is obvious to you (also, it's a bit off-topic): This is bad practice in MATLAB and in a direct translation also in Mathematica, as in this way new memory needs to be allocated every time you add an element and this takes a lot of time. Better preallocate by x=zeros(1,n). (Of course this doesn't matter much if you do it only once in the whole program.)
Jul
22
comment Is there a list of Octave functions mapped to the related Mathematica one?
@Mr.Wizard Oh, I just found this on Wikipedia: "In fact, Octave treats incompatibility with MATLAB as a bug [...]". I think we are safe :)
Jul
22
comment Is there a list of Octave functions mapped to the related Mathematica one?
@Mr.Wizard Maybe we should make it Octave/Matlab. I think the function names are mostly the same anyway but I'm not 100% sure and couldn't find anything relevant right now. So I guess, if the functions have different names, just name both. What do you think?
Jul
21
comment Why do quote marks appear in output when saved with Save Selection As?
Here is my summary: First of all, I do not get any quotes when exporting to pdf. I do get quotes if I select the cell contents and use Save Selection As.. to save to png. I do not get quotes if I either select the whole cell to Save Selection As png or use Export["quotes.png", CharacterRange["a", "z"]].
Jul
21
comment What's the difference between Inactive and HoldForm?
@YiWang Oops, good point :) I didn't think of HoldForm because I never use it. The real point is probably in a more elaborate example (see edit). Now I'm crossing my fingers that I didn't overlook something else...
Jul
21
comment Anti-aliasing not working in Mathematica 10 and Linux
I have the same behavior (i.e. no visible change) under also under Linux with a NVidia card.
Jul
21
comment Why do quote marks appear in output when saved with Save Selection As?
@Mr.Wizard Funny, I can't reproduce the behavior you described under Linux. I think the option mentioned by Carlo is under FormattingOptions>ExpressionFormatting>DisplayOptions. For me it does not change the behavior of the string export, however.
Jul
19
comment Solve matrix equation A*X=X*B using LeastSquares
@mrgloom See this article. Checking if the two matrices commute may not be completely trivial if they consist of floating point numbers. My first approach would be PossibleZeroQ...
Jul
16
comment Adding a tree to a list of trees within a loop
You should really go through some basic Mathematica tutorials first, it works very differently than you think it does. For your question at hand take a look at this post (and the whole thread in general!)
Jul
16
comment Issuing user-defined messages takes a long time (Message is slow)
Front end. They are basically what you have in both cases.
Jul
16
comment Issuing user-defined messages takes a long time (Message is slow)
I have very similar timings under V8 and V10 (did not check V9 now) under Linux
Jul
12
comment Potential pollution of Global` context in fresh kernel
Nevermind my earlier comment, I get {"list", "msgs", "rhs", "z"} under Linux.
Jul
10
comment Transparency rendering problems in Mathematica 10 (Mac)
I can reproduce the dots you see under Linux. Also, I think that @Thomas is correct. Try this: Contours -> {.9}, ContourShading -> None, ContourStyle -> {{Red,Thickness[0.1]}}
Jun
18
comment Mathematica Destructuring
I just stumbled over this and I have to say I really like it! Using this with the shorthand notation is especially neat!
May
15
comment Is there a way to solve the linear equation, Ax=b, in which A is a “non-constant” sparse matrix that depends on x?
@murray I'm a bit confused by your comment... How is it a linear equation if A depends on x at all?
May
2
comment How to exchange two arguments?
Very neat! Never thought about this one!
Apr
24
comment Copy a variable to a specific kernel in Mathematica
I took the liberty to delete the second half of the question, which I think is not really relevant for what you are trying to achieve (edit still has to be reviewed by the mods). Hope that is ok for you, otherwise please revert it.
Apr
24
comment Copy a variable to a specific kernel in Mathematica
@TheQuantumPhysicist So in this case I would suggest that you edit your question to make it clear what you are really looking for, i.e. a way to set a variable on specific kernels. It would also be worth a look if there are any duplicates out there. I did a quick search but didn't find anything appropriate.