#| -*-Scheme-*-
-$Id: arith.scm,v 1.31 1995/01/13 22:17:16 adams Exp $
+$Id: arith.scm,v 1.32 1995/05/10 03:33:08 adams Exp $
Copyright (c) 1989-94 Massachusetts Institute of Technology
SELF ; ignored
(REDUCE ,generic-binary ,identity ZS))
(VECTOR (FIXED-OBJECTS-ITEM 'arity-dispatcher-tag)
- (LAMBDA () ,identity)
- (LAMBDA (Z)
+ (NAMED-LAMBDA (,(symbol-append 'NULLARY- name))
+ ,identity)
+ (NAMED-LAMBDA (,(symbol-append 'UNARY- name) Z)
(IF (NOT (COMPLEX:COMPLEX? Z))
(ERROR:WRONG-TYPE-ARGUMENT Z FALSE ',name))
Z)
- (LAMBDA (Z1 Z2)
+ (NAMED-LAMBDA (,(symbol-append 'BINARY- name) Z1 Z2)
((UCODE-PRIMITIVE ,primitive-binary) Z1 Z2))))))))
(commutative + complex:+ 0 &+)
(commutative * complex:* 1 &*))
(VECTOR (FIXED-OBJECTS-ITEM 'arity-dispatcher-tag)
#F
,generic-unary
- (LAMBDA (Z1 Z2)
+ (NAMED-LAMBDA (,(symbol-append 'BINARY- name) Z1 Z2)
((UCODE-PRIMITIVE ,primitive-binary) Z1 Z2))))))))
(non-commutative - complex:negate complex:- complex:+ 0 &-)
(non-commutative / complex:invert complex:/ complex:* 1 &/))
(REDUCE-COMPARATOR ,generic-binary ZS ',name))
(VECTOR
(FIXED-OBJECTS-ITEM 'arity-dispatcher-tag)
- (LAMBDA () #T)
- (LAMBDA (Z)
+ (NAMED-LAMBDA (,(symbol-append 'NULLARY- name)) #T)
+ (NAMED-LAMBDA (,(symbol-append 'UNARY- name) Z)
(IF (NOT (,correct-type? Z))
(ERROR:WRONG-TYPE-ARGUMENT Z FALSE ',name))
#T)
,(if negated?
- `(LAMBDA (Z1 Z2)
+ `(NAMED-LAMBDA (,(symbol-append 'BINARY- name) Z1 Z2)
(NOT ((UCODE-PRIMITIVE ,primitive-binary) Z1 Z2)))
- `(LAMBDA (Z1 Z2)
+ `(NAMED-LAMBDA (,(symbol-append 'BINARY- name) Z1 Z2)
((UCODE-PRIMITIVE ,primitive-binary) Z1 Z2)))))))))
(relational = complex:= &= complex:complex? #F)
(VECTOR
(FIXED-OBJECTS-ITEM 'arity-dispatcher-tag)
#F
- (LAMBDA (X)
+ (NAMED-LAMBDA (,(symbol-append 'UNARY- name) X)
(IF (NOT (COMPLEX:REAL? X))
(ERROR:WRONG-TYPE-ARGUMENT X FALSE ',name))
X)