Updates:
        Cc: -ondrej.certik Ronan.Lamy

Comment #3 on issue 1758 by asmeurer: fix curvilinear_coordinates example  
output
http://code.google.com/p/sympy/issues/detail?id=1758

In the relativity example:

dsolve(S("diff(lamda(r), r, r)/2 + diff(lamda(r), r)/r - diff(lamda(r),  
r)**2/2"), S("lamda(r)"))

  #        return r"lambda"
  nu = Function("nu")
-lam = Function("lamda")
+lam = Function("lambda")

  t=Symbol("t")
  r=Symbol("r")
@@ -208,9 +208,9 @@ def main():
      #print "scalar curvature:"
      #print curvature(Rmn)
      print "-"*40
-    print "solve the Einstein's equations:"
+    print "Solve Einstein's equations:"
      e = e.subs(nu(r), -lam(r))
-    l =  dsolve(e, [lam(r)])
+    l =  dsolve(e, lam(r))
      pprint( Eq(lam(r), l) )

I think lam should be lamda not lambda, so it pretty prints to a λ.  Also,  
the line below this should be just "print l", because
dsolve returns an Eq instance already (always).  (Is that the weird result  
you referenced?)  Solve can't solve that equation, so it
will be implicit.

Also, there are other calls to dsolve that aren't used that would fail if  
they were because they still use the old syntax.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--

You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.


Reply via email to