aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/pinterp.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-04-03 04:23:42 +0000
committerdos-reis <gdr@axiomatics.org>2008-04-03 04:23:42 +0000
commit001e19b08ba7fb1b9e6f6bdb44a82ba3db3fc532 (patch)
treeda9e2fe5d81ff4cd7709d12e44b8c3e348b8a8e3 /src/algebra/pinterp.spad.pamphlet
parenta7bab9a6c2070d05e2dbd256ce455079c8ced385 (diff)
downloadopen-axiom-001e19b08ba7fb1b9e6f6bdb44a82ba3db3fc532.tar.gz
Replace `^=' with `~='.
Diffstat (limited to 'src/algebra/pinterp.spad.pamphlet')
-rw-r--r--src/algebra/pinterp.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
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