Skip to content
Snippets Groups Projects
Commit 83953cd4 authored by Ivan Kondov's avatar Ivan Kondov
Browse files

fixed missing 'sign' parameter

parent db9836cd
No related branches found
No related tags found
No related merge requests found
from liouville import q, p, LiouvillePowers
order = 4
ilnq = LiouvillePowers(order, function=q, hamiltonian=p**2/2, recursion='chebyshev')
ilnp = LiouvillePowers(order, function=p, hamiltonian=p**2/2, recursion='chebyshev')
ilnq = LiouvillePowers(order, function=q, hamiltonian=p**2/2,
recursion='chebyshev', sign=1)
ilnp = LiouvillePowers(order, function=p, hamiltonian=p**2/2,
recursion='chebyshev', sign=1)
print(ilnq, ilnp)
print(ilnq.Lf, ilnp.Lf)
......@@ -19,8 +19,8 @@ V = V.subs(r, abs(Q[0]-Q[1]))
T = sum(p**2/2 for p in P)
H = (V, T)
ilnq = MPLP(nterms, H, Q, P, Q, recursion='chebyshev')
ilnp = MPLP(nterms, H, Q, P, P, recursion='chebyshev')
ilnq = MPLP(nterms, H, Q, P, Q, recursion='chebyshev', sign=1)
ilnp = MPLP(nterms, H, Q, P, P, recursion='chebyshev', sign=1)
print(ilnq.Lf[nterms-1])
print(ilnp.Lf[nterms-1])
Qval = [1, 1.1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment