You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is somewhat related to https://cadabra.science/qa/79/error-in-using-vary . The problem is that it requires knowing the derivative of the cosine, and I would really like to avoid adding all that logic into cadabra itself (sympy should be taking care of that). At the moment, the way to solve this is to help cadabra a bit: if you start from
Suppose you want to compute the equations of motion of a non-linear action principle, such as the Sine-Gordon model:
S:= \int { (\partial_t \phi)^2-(\partial_x \phi)^2 -2 + 2 \cos(\phi) }{x};
Can you compute the equations of motion? I tried using
vary(S,$\phi -> \delta{\phi}$ )
But is seems not to work, as it keeps computing forever...
Is Cadabra equipped to deal with non-linear potentials? It seems to me that it only admits polynomial terms.
The text was updated successfully, but these errors were encountered: