From 001e19b08ba7fb1b9e6f6bdb44a82ba3db3fc532 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Thu, 3 Apr 2008 04:23:42 +0000 Subject: Replace `^=' with `~='. --- src/algebra/pinterp.spad.pamphlet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/algebra/pinterp.spad.pamphlet') diff --git a/src/algebra/pinterp.spad.pamphlet b/src/algebra/pinterp.spad.pamphlet index d8c1482f..0d3c9a04 100644 --- a/src/algebra/pinterp.spad.pamphlet +++ b/src/algebra/pinterp.spad.pamphlet @@ -24,13 +24,13 @@ PolynomialInterpolationAlgorithms(F, P): Cat == Body where Body ==> add LagrangeInterpolation(lx, ly) == - #lx ^= #ly => + #lx ~= #ly => error "Different number of points and values." ip: P := 0 for xi in lx for yi in ly for i in 0.. repeat pp: P := 1 xp: F := 1 - for xj in lx for j in 0.. | i ^= j repeat + for xj in lx for j in 0.. | i ~= j repeat pp := pp * (monomial(1,1) - monomial(xj,0)) xp := xp * (xi - xj) ip := ip + (yi/xp) * pp -- cgit v1.2.3