New answers tagged physics
3
votes
Accepted
Convergence plot of Lyapunov exponents
I uncovered an unexpected little bug in LyapunovExponents that caused those errors. If you use the updated version from here, it now seems to work.
Wrangle into ...
7
votes
Accepted
Error in Metropolis-Hastings with three states?
Disclaimer: I am not a physicist... :)
... but I know how Metropolis-Hastings works. So let's got about this with the following idea:
We will use a simple proposal distribution that selects one of ...
1
vote
Accepted
Using Loop to find a specific Energy
If you just want a set of solutions that satisfy your initial condition, you could use FindInstance:
...
2
votes
Using Loop to find a specific Energy
Let's first fix your approach. I have slightly changed the naming of the variables, but the main difference is in using SetDelayed (:=) instead of ...
4
votes
Accepted
Finding Hamiltonian from a perturbative Action
The procedure is basically what you would do by hand,
$
\mathcal{H} = \pi \dot{\phi} - \mathcal{L}
$
So just define the momentum $\pi$ as usual
...
6
votes
Neglecting higher order terms in a Lagrangian
Another approach to insert the "smallness" parameter is:
Normal[
Series[n /. C[i_] :> Function[m C[i][#]], {m, 0, 3}]
] /. m->1
-ωsq[0] C[0][t]...
4
votes
Neglecting higher order terms in a Lagrangian
Another way to do this is to "tag" the expressions in the original code with some formal parameter $\epsilon$:
...
4
votes
Accepted
Neglecting higher order terms in a Lagrangian
If I understand correctly you just have to include the derivatives in the vars
...
Top 50 recent answers are included
Related Tags
physics × 789differential-equations × 267
plotting × 121
calculus-and-analysis × 84
numerical-integration × 71
equation-solving × 68
finite-element-method × 42
matrix × 40
numerics × 38
graphics × 34
simulation × 30
fitting × 27
special-functions × 26
eigenvalues × 23
tensors × 22
chemistry × 22
packages × 21
animation × 18
probability-or-statistics × 17
linear-algebra × 17
nonlinear × 17
performance-tuning × 16
manipulate × 16
mathematical-optimization × 16
vector × 16