Reputation
53,417
Next tag badge:
112/100 score
18/20 answers
Badges
2 83 211
Newest
 Good Answer
Impact
~703k people reached

Apr
24
comment incuding graphics
You'll have to familiarize yourself with the language before trying to adapt legacy code to the new version. In particular, semicolon means CompoundExpression and will cause plots not to be displayed when followed by ;. Many people coming from other languages are confused about how semicolons work in Mathematica. It's important to read the introductory documentation first.
Apr
24
comment Copy and Paste Equations Mathematica
What I mean is that this cannot be done directly with built-in Mathematica commands, so it will require a palette or button that implements some code behind the scenes to create and decode the necessary meta-information that one needs to carry along with the PDf in order to be able to recreate the source from it. PDF is a display formatting language and by default doesn't retain enough information to allow meaningful round-trip conversion with Mathematica. So implementing this will take some work, and it's necessary to know more about what you really intend to do first.
Apr
24
comment Copy and Paste Equations Mathematica
If you have $\LaTeX$ installed, the linked prescription could be adapted. Or do you need something that doesn't rely on $\LaTeX$? For alternatives solutions, it may also matter what OS you're on.
Apr
23
revised Evaluation of Derivative in a Module
added 319 characters in body
Apr
23
answered Evaluation of Derivative in a Module
Apr
22
reviewed Close Raw object cannot be used as an iterator error while plotting
Apr
22
comment Raw object cannot be used as an iterator error while plotting
possible duplicate of How do I avoid scoping collisions of iterator variables?
Apr
22
reviewed Close to determine asymptotic value of function when N->infinity
Apr
22
reviewed Close Odd and unclear solver output
Apr
22
reviewed Close Problem when setting a path by a string
Apr
22
comment Multiply out product of sums
Related: Pull out scalars from NonCommutativeMultiply in commutator of SU2 spin algebra, and Traces of products of Pauli matrices
Apr
22
comment Are standard geometric functions present in Mathematica or do I have to type them in?
See here, here and here.
Apr
22
comment Using a For-loop to do numerical integration
possible duplicate of Approximate value for the area between the curve
Apr
21
comment Mathematica Crashes with low memory warning Trying to solve Schroedinger Equation in a box with initial constraints
Normalization factors are irrelevant in a linear differential equation, so you can add any scaling you want after the calculation of $\psi$, instead of cluttering up the solution process with numerical constants. It's always best in numerics to reduce the number of parameters to the minimum relevant set. The consistent way of normalizing the result is to do an integral over the absolute square of the result at an arbitrary time over the box, and divide by the square root of that number. For plotting a movie with normalization, you additionally have to fix the color scale.
Apr
21
comment Mathematica Crashes with low memory warning Trying to solve Schroedinger Equation in a box with initial constraints
Maybe I can add some more explanations later. The Array with slots # is a shorter way of constructing one of the lists I need. You could do the same with another Table construct. Array is just shorter sometimes, especially here since it doesn't require me to define an additional table index variable. The slots # and #2 are then the stand0ins for the table indices I didn't want to name.
Apr
21
comment Mathematica Crashes with low memory warning Trying to solve Schroedinger Equation in a box with initial constraints
@catadoxas Sure, you can replace the Re by Abs[Psi]^2 if you prefer. In a more streamlined answer, one could also replace my FindFit approach with a Fourier series. But the advantage of using function fitting is that it can be generalized more easily to other systems where the eigenfunctions don't happen to be identical to sine waves, i.e., basis functions of the Fourier series. You could use the same method to plot wave packet evolution in a 2D harmonic oscillator, for example. One then would fit the initial packet to a superposition of HO eigenfunctions.
Apr
21
revised Mathematica Crashes with low memory warning Trying to solve Schroedinger Equation in a box with initial constraints
added 3 characters in body
Apr
21
revised Mathematica Crashes with low memory warning Trying to solve Schroedinger Equation in a box with initial constraints
added 63 characters in body
Apr
21
answered Mathematica Crashes with low memory warning Trying to solve Schroedinger Equation in a box with initial constraints
Apr
21
comment Mathematica Crashes with low memory warning Trying to solve Schroedinger Equation in a box with initial constraints
A more efficient approach for this simple example would be to expand in eigenfunctions of the time-independent equation with Dirichlet conditions.