From a80cda25e88e589472da62f556ae429d38db1e68 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 4 Dec 2012 18:44:46 -0500 Subject: [PATCH] Use SR.var() instead of var() everywhere. --- mjo/interpolation.py | 2 +- mjo/misc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.44.2