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/algfunc.spad.pamphlet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/algebra/algfunc.spad.pamphlet') diff --git a/src/algebra/algfunc.spad.pamphlet b/src/algebra/algfunc.spad.pamphlet index 163734e3..3bd69cdc 100644 --- a/src/algebra/algfunc.spad.pamphlet +++ b/src/algebra/algfunc.spad.pamphlet @@ -264,7 +264,7 @@ This used to read: \begin{verbatim} hackroot(x, n) == (n = 1) or (x = 1) => x - (x ^= -1) and (((num := numer x) = 1) or (num = -1)) => + (x ~= -1) and (((num := numer x) = 1) or (num = -1)) => inv hackroot((num * denom x)::F, n) (x = -1) and n = 4 => ((-1::F) ** (1::Q / 2::Q) + 1) / ((2::F) ** (1::Q / 2::Q)) @@ -278,7 +278,7 @@ test and give $$1/(-2)^(1/n) \ne (-1/2)^(1/n)$$ <>= hackroot(x, n) == (n = 1) or (x = 1) => x - (((dx := denom x) ^= 1) and + (((dx := denom x) ~= 1) and ((rx := retractIfCan(dx)@Union(Integer,"failed")) case Integer) and positive?(rx)) => hackroot((numer x)::F, n)/hackroot(rx::Integer::F, n) @@ -392,7 +392,7 @@ AlgebraicFunction(R, F): Exports == Implementation where UP2R p == ans:UPR := 0 - while p ^= 0 repeat + while p ~= 0 repeat (r := retractIfCan(leadingCoefficient p)@Union(R, "failed")) case "failed" => return "failed" ans := ans + monomial(r::R, degree p) -- cgit v1.2.3