diff options
Diffstat (limited to 'src/algebra/newpoint.spad.pamphlet')
-rw-r--r-- | src/algebra/newpoint.spad.pamphlet | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/newpoint.spad.pamphlet b/src/algebra/newpoint.spad.pamphlet index b6b32e30..27301539 100644 --- a/src/algebra/newpoint.spad.pamphlet +++ b/src/algebra/newpoint.spad.pamphlet @@ -65,7 +65,7 @@ Point(R:Ring) : Exports == Implementation where dimension p == (# p)::PI -- Vector returns NonNegativeInteger...? convert(l:List R):% == point(l) cross(p0, p1) == - #p0 ^=3 or #p1^=3 => error "Arguments to cross must be three dimensional" + #p0 ~=3 or #p1~=3 => error "Arguments to cross must be three dimensional" point [p0.2 * p1.3 - p1.2 * p0.3, _ p1.1 * p0.3 - p0.1 * p1.3, _ p0.1 * p1.2 - p1.1 * p0.2] @@ -567,7 +567,7 @@ SubSpace(n:PI,R:Ring) : Exports == Implementation where (leaf? s1 and leaf? s2) => (s1.pt = s2.pt) and (s1.property = s2.property) and (s1.levelField = s2.levelField) -- note that the ordering of children is important - #s1.childrenField ^= #s2.childrenField => false + #s1.childrenField ~= #s2.childrenField => false and/[c1 = c2 for c1 in s1.childrenField for c2 in s2.childrenField] and (s1.property = s2.property) and (s1.levelField = s2.levelField) coerce(space:%):O == |