Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 2180 by [email protected]: examples/advanced/relativity.py
stopped working
http://code.google.com/p/sympy/issues/detail?id=2180
$ python examples/advanced/relativity.py
[...]
Solve Einstein's equations:
Traceback (most recent call last):
File "examples/advanced/relativity.py", line 221, in <module>
main()
File "examples/advanced/relativity.py", line 214, in main
l = dsolve(e, lam(r))
File "/home/ondrej/repos/sympy/sympy/solvers/ode.py", line 401, in dsolve
hints = classify_ode(eq, func, dict=True)
File "/home/ondrej/repos/sympy/sympy/solvers/ode.py", line 746, in
classify_ode
r = _nth_linear_match(reduced_eq, func, order)
File "/home/ondrej/repos/sympy/sympy/solvers/ode.py", line 2182, in
_nth_linear_match
terms[len(f.args[1:])] += c
KeyError: 2
I assume some syntax has changed in the solve() function, or maybe it
stopped supporting that particular ODE (that one gets in the example),
whose implementation was a bit hackish anyway.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.