]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
Use SR.var() instead of var() everywhere.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 4 Dec 2012 23:44:46 +0000 (18:44 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 4 Dec 2012 23:44:46 +0000 (18:44 -0500)
mjo/interpolation.py
mjo/misc.py

index 393908670054a9740203de64c3e0338e10f689c0..fa784dd8c86fc2ab9406592622599f0320ba8941 100644 (file)
@@ -186,7 +186,7 @@ def divided_difference(xs, ys):
         sage: f = function('f', x)
         sage: divided_difference([x], [f(x=x)])
         f(x)
-        sage: x1,x2 = var('x1,x2')
+        sage: x1,x2 = SR.var('x1,x2')
         sage: divided_difference([x1,x2], [f(x=x1),f(x=x2)])
         f(x1)/(x1 - x2) - f(x2)/(x1 - x2)
 
index f5a7bcf124d50cbc7c97d2b6628ce391679cbda5..8f50de32a23f90f8ce937a46fb2bb342450237e2 100644 (file)
@@ -27,7 +27,7 @@ def product(factors):
 
     And with symbolic variables::
 
-        sage: x,y,z = var('x,y,z')
+        sage: x,y,z = SR.var('x,y,z')
         sage: product([x,y,z])
         x*y*z