org.armedbear.lisp
Class Complex

java.lang.Object
  extended by org.armedbear.lisp.LispObject
      extended by org.armedbear.lisp.Complex

public final class Complex
extends LispObject


Field Summary
 LispObject imagpart
           
 LispObject realpart
           
 
Method Summary
 LispObject ABS()
           
 LispObject add(LispObject obj)
           
 LispObject classOf()
           
 LispObject coerceToDoubleFloat()
          Coerces the complex parts into DoubleFloats
 LispObject COMPLEXP()
           
 LispObject decr()
           
 LispObject divideBy(LispObject obj)
           
 boolean eql(LispObject obj)
           
 boolean equal(LispObject obj)
           
 boolean equalp(LispObject obj)
           
 LispObject getImaginaryPart()
           
static LispObject getInstance(LispObject realpart, LispObject imagpart)
           
 LispObject getRealPart()
           
 LispObject incr()
           
 boolean isEqualTo(LispObject obj)
           
 boolean isNotEqualTo(LispObject obj)
           
 LispObject multiplyBy(LispObject obj)
           
 boolean numberp()
           
 java.lang.String printObject()
           
 int psxhash()
           
 LispObject subtract(LispObject obj)
           
 int sxhash()
           
 LispObject typeOf()
           
 LispObject typep(LispObject type)
           
 boolean zerop()
           
 
Methods inherited from class org.armedbear.lisp.LispObject
add, aref_long, aref, AREF, AREF, aset, aset, aset, ash, ash, atom, ATOM, caddr, cadr, car, cddr, cdr, CHAR, characterp, CHARACTERP, chars, constantp, CONSTANTP, copyToArray, DENOMINATOR, dispatch, doubleValue, elt, endp, ENDP, EQ, eql, eql, EQL, equal, EQUAL, equalp, evenp, EVENP, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, floatp, FLOATP, floatValue, getBooleanValue, getCallCount, getDescription, getDocumentation, getFixnumSlotValue, getHotCount, getInstance, getParts, getPropertyList, getSlotValue_0, getSlotValue_1, getSlotValue_2, getSlotValue_3, getSlotValue, getSlotValueAsBoolean, getStringChars, getStringValue, getSymbolFunction, getSymbolFunctionOrDie, getSymbolSetfFunction, getSymbolSetfFunctionOrDie, getSymbolValue, incrementCallCount, incrementHotCount, integerp, INTEGERP, intValue, IS_E, IS_GE, IS_GT, IS_LE, IS_LT, IS_NE, isEqualTo, isGreaterThan, isGreaterThan, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isLessThan, isLessThan, isLessThanOrEqualTo, isLessThanOrEqualTo, isNotEqualTo, isSpecialOperator, isSpecialVariable, javaInstance, javaInstance, LDB, length, LENGTH, listp, LISTP, lockableInstance, LOGAND, LOGAND, LOGIOR, LOGIOR, LOGNOT, LOGXOR, LOGXOR, longValue, minusp, MINUSP, MOD, MOD, multiplyBy, negate, noFillPointer, NOT, nreverse, NTH, NTH, nthcdr, NUMBERP, NUMERATOR, oddp, ODDP, plusp, PLUSP, princToString, psxhash, push, rationalp, RATIONALP, realp, REALP, resolve, reverse, RPLACA, RPLACD, SCHAR, setCallCount, setCar, setCdr, setDocumentation, setHotCount, setPropertyList, setSlotValue_0, setSlotValue_1, setSlotValue_2, setSlotValue_3, setSlotValue, setSlotValue, SIMPLE_STRING_P, SLOT_VALUE, STRING, stringp, STRINGP, subtract, SVREF, svset, SYMBOLP, truncate, unreadableString, unreadableString, VECTOR_PUSH_EXTEND, VECTOR_PUSH_EXTEND, vectorp, VECTORP, vectorPushExtend, ZEROP
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

realpart

public final LispObject realpart

imagpart

public final LispObject imagpart
Method Detail

getInstance

public static LispObject getInstance(LispObject realpart,
                                     LispObject imagpart)

getRealPart

public LispObject getRealPart()

getImaginaryPart

public LispObject getImaginaryPart()

coerceToDoubleFloat

public LispObject coerceToDoubleFloat()
Coerces the complex parts into DoubleFloats

Returns:
a new complex with double-float real and imaginary parts

typeOf

public LispObject typeOf()
Overrides:
typeOf in class LispObject

classOf

public LispObject classOf()
Overrides:
classOf in class LispObject

typep

public LispObject typep(LispObject type)
Overrides:
typep in class LispObject

numberp

public boolean numberp()
Overrides:
numberp in class LispObject

eql

public boolean eql(LispObject obj)
Overrides:
eql in class LispObject

equal

public boolean equal(LispObject obj)
Overrides:
equal in class LispObject

equalp

public boolean equalp(LispObject obj)
Overrides:
equalp in class LispObject

incr

public final LispObject incr()
Overrides:
incr in class LispObject

decr

public final LispObject decr()
Overrides:
decr in class LispObject

add

public LispObject add(LispObject obj)
Overrides:
add in class LispObject

subtract

public LispObject subtract(LispObject obj)
Overrides:
subtract in class LispObject

multiplyBy

public LispObject multiplyBy(LispObject obj)
Overrides:
multiplyBy in class LispObject

divideBy

public LispObject divideBy(LispObject obj)
Overrides:
divideBy in class LispObject

isEqualTo

public boolean isEqualTo(LispObject obj)
Overrides:
isEqualTo in class LispObject

isNotEqualTo

public boolean isNotEqualTo(LispObject obj)
Overrides:
isNotEqualTo in class LispObject

ABS

public LispObject ABS()
Overrides:
ABS in class LispObject

zerop

public boolean zerop()
Overrides:
zerop in class LispObject

COMPLEXP

public LispObject COMPLEXP()
Overrides:
COMPLEXP in class LispObject

sxhash

public int sxhash()
Overrides:
sxhash in class LispObject

psxhash

public int psxhash()
Overrides:
psxhash in class LispObject

printObject

public java.lang.String printObject()
Overrides:
printObject in class LispObject