From: Michael Orlitzky Date: Tue, 4 Dec 2012 23:44:46 +0000 (-0500) Subject: Use SR.var() instead of var() everywhere. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=a80cda25e88e589472da62f556ae429d38db1e68;p=sage.d.git Use SR.var() instead of var() everywhere. --- diff --git a/mjo/interpolation.py b/mjo/interpolation.py index 3939086..fa784dd 100644 --- a/mjo/interpolation.py +++ b/mjo/interpolation.py @@ -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) diff --git a/mjo/misc.py b/mjo/misc.py index f5a7bcf..8f50de3 100644 --- a/mjo/misc.py +++ b/mjo/misc.py @@ -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