org.jatha.dynatype
Interface LispComplex
- All Superinterfaces:
- Comparable, LispAtom, LispNumber, LispValue
- All Known Implementing Classes:
- StandardLispComplex
public interface LispComplex
- extends LispNumber
LispComplex is an abstract class that implements
the Common LISP COMPLEX type. It contains the
definitions of add, subtract, multiply, divide
and many other functions.
- See Also:
StandardLispComplex
,
LispValue
,
LispNumber
,
LispAtom
,
LispInteger
,
LispReal
Method Summary |
double |
abs(LispComplex a)
|
LispComplex |
acos(LispComplex aa)
|
LispComplex |
acosh(LispComplex aa)
|
double |
arg()
|
double |
arg(LispComplex a)
|
LispComplex |
asin(LispComplex aa)
|
LispComplex |
asinh(LispComplex aa)
|
LispComplex |
atan(LispComplex aa)
|
LispComplex |
atanh(LispComplex aa)
|
LispComplex |
conjugate()
|
LispComplex |
conjugate(LispComplex a)
|
LispComplex |
copy(LispComplex a)
|
LispComplex[] |
copy(LispComplex[] a)
|
LispComplex[][] |
copy(LispComplex[][] a)
|
LispComplex |
cos(LispComplex aa)
|
LispComplex |
cosh(LispComplex aa)
|
LispComplex |
exp(double aa)
|
LispComplex |
exp(LispComplex aa)
|
LispComplex |
expMinusJayArg(double arg)
|
LispComplex |
expPlusJayArg(double arg)
|
LispValue |
getImaginary()
Returns the imaginary part of the complex number. |
boolean |
getInfOption()
|
LispValue |
getReal()
Returns the real part of the complex number. |
double |
hypot(LispComplex aa,
LispComplex bb)
|
LispComplex |
inverse()
|
LispComplex |
inverse(LispComplex a)
|
boolean |
isEqual(LispComplex a,
LispComplex b)
|
boolean |
isEqualWithinLimits(LispComplex x,
double limit)
|
boolean |
isEqualWithinLimits(LispComplex a,
LispComplex b,
double limit)
|
boolean |
isInfinite()
|
boolean |
isInfinite(LispComplex a)
|
boolean |
isMinusInfinity()
|
boolean |
isMinusInfinity(LispComplex a)
|
boolean |
isNaN()
|
boolean |
isNaN(LispComplex a)
|
boolean |
isPlusInfinity()
|
boolean |
isPlusInfinity(LispComplex a)
|
boolean |
isReal()
|
boolean |
isReal(LispComplex a)
|
boolean |
isZero()
|
boolean |
isZero(LispComplex a)
|
LispComplex |
log(LispComplex aa)
|
LispComplex |
minus(double a)
|
LispComplex |
minus(double a,
double b)
|
LispComplex |
minus(double a,
LispComplex b)
|
LispComplex |
minus(LispComplex a)
|
LispComplex |
minus(LispComplex a,
double b)
|
LispComplex |
minus(LispComplex a,
LispComplex b)
|
void |
minusEquals(double a)
|
void |
minusEquals(LispComplex a)
|
LispComplex |
minusJay()
|
LispComplex |
minusOne()
|
LispComplex |
negate(LispComplex a)
|
LispComplex |
nthRoot(LispComplex aa,
int n)
|
LispComplex[] |
oneDarray(int n)
|
LispComplex[] |
oneDarray(int n,
double a,
double b)
|
LispComplex[] |
oneDarray(int n,
LispComplex xx)
|
LispComplex |
over(double a)
|
LispComplex |
over(double a,
double b)
|
LispComplex |
over(double a,
LispComplex b)
|
LispComplex |
over(LispComplex a)
|
LispComplex |
over(LispComplex a,
double b)
|
LispComplex |
over(LispComplex a,
LispComplex b)
|
void |
overEquals(double a)
|
void |
overEquals(LispComplex a)
|
LispComplex |
pi()
|
LispComplex |
plus(double a)
|
LispComplex |
plus(double a,
double b)
|
LispComplex |
plus(double a,
LispComplex b)
|
LispComplex |
plus(LispComplex a)
|
LispComplex |
plus(LispComplex a,
double b)
|
LispComplex |
plus(LispComplex a,
LispComplex b)
|
void |
plusEquals(double a)
|
void |
plusEquals(LispComplex a)
|
LispComplex |
plusJay()
|
LispComplex |
plusOne()
|
void |
polar(double length,
double angle)
Sets the real part of this Complex number to length*cos(angle) and
sets the imaginary part to length*sin(angle) where lengthis the first argument
and angle is the argument (in radians) |
LispComplex |
pow(double a,
LispComplex b)
|
LispComplex |
pow(int a,
LispComplex b)
|
LispComplex |
pow(LispComplex a,
double b)
|
LispComplex |
pow(LispComplex a,
int b)
|
LispComplex |
pow(LispComplex a,
LispComplex b)
|
void |
setImaginary(LispValue imag)
Sets the real part of a complex number. |
void |
setInfOption(int opt)
|
void |
setReal(LispValue real)
Sets the real part of a complex number. |
void |
setValue(LispValue real,
LispValue imag)
Sets both the real part and the imaginary part of a complex number. |
LispComplex |
sinh(LispComplex aa)
|
LispComplex |
sqrt(LispComplex aa)
|
LispComplex |
square(LispComplex aa)
|
double |
squareAbs()
|
double |
squareAbs(LispComplex a)
|
LispComplex |
tan(LispComplex aa)
|
LispComplex |
tanh(LispComplex aa)
|
LispComplex |
times(double a)
|
LispComplex |
times(double a,
double b)
|
LispComplex |
times(double a,
LispComplex b)
|
LispComplex |
times(LispComplex a)
|
LispComplex |
times(LispComplex a,
double b)
|
LispComplex |
times(LispComplex a,
LispComplex b)
|
void |
timesEquals(double a)
|
void |
timesEquals(LispComplex a)
|
LispComplex |
transposedMinus(double a)
|
LispComplex |
transposedOver(double a)
|
LispComplex[][] |
twoDarray(int n,
int m)
|
LispComplex[][] |
twoDarray(int n,
int m,
double a,
double b)
|
LispComplex[][] |
twoDarray(int n,
int m,
LispComplex xx)
|
LispComplex |
twoPiJay()
|
LispComplex |
zero()
|
Methods inherited from interface org.jatha.dynatype.LispValue |
abs, acos, add, adjustSpecialCount, append, apply, apropos_print, asin, assoc, atan, atan2, atom, basic_atom, basic_bignump, basic_consp, basic_constantp, basic_floatp, basic_foreignp, basic_functionp, basic_integerp, basic_keywordp, basic_length, basic_listp, basic_macrop, basic_null, basic_numberp, basic_stringp, basic_symbolp, bignump, boundp, butlast, car, cdr, ceiling, characterp, clrhash, compareTo, concatenate, consp, constantp, contains, copy_list, copy, cos, cot, csc, degreesToRadians, divide, documentation, eighth, elt, elt, eq, eql, equal, equalNumeric, factorial, fboundp, fifth, first, floatp, floor, fourth, funcall, functionp, get_specialCount, gethash, gethash, getLisp, greaterThan, greaterThanOrEqual, hash_table_count, hash_table_rehash_size, hash_table_rehash_threshold, hash_table_size, hash_table_test, hashtablep, integerp, internal_getName, internal_prin1_as_cdr, internal_prin1, internal_princ_as_cdr, internal_princ, internal_print_as_cdr, internal_print, iterator, keywordp, last, length, lessThan, lessThanOrEqual, lisp_null, list, listp, max, member, min, multiply, nconc, negate, neql, ninth, nreverse, nstringCapitalize, nstringDowncase, nstringUpcase, numberp, pop, position, prin1, princ, print, push, radiansToDegrees, rassoc, readFromString, reciprocal, remhash, remove, rest, reverse, rplaca, rplacd, sec, second, set_special, setf_documentation, setf_gethash, setf_symbol_function, setf_symbol_plist, setf_symbol_value, setLisp, setPackage, setq, seventh, sin, sixth, specialP, sqrt, string, stringCapitalize, stringDowncase, stringEndsWith, stringEq, stringEqual, stringGreaterP, stringGreaterThan, stringGreaterThanOrEqual, stringLeftTrim, stringLeftTrim, stringLessP, stringLessThan, stringLessThanOrEqual, stringNeq, stringNotGreaterP, stringNotLessP, stringp, stringRightTrim, stringRightTrim, stringStartsWith, stringTrim, stringTrim, stringUpcase, subst, substring, substring, subtract, symbol_function, symbol_name, symbol_package, symbol_plist, symbol_value, symbolp, tan, tenth, third, toCollection, toJava, toJava, toString, toString, toStringAsCdr_internal, toStringAsCdr, toStringShort, toStringShort, toStringSimple, type_of, typep, uses, zerop |
setReal
void setReal(LispValue real)
- Sets the real part of a complex number.
- Parameters:
real
- the new value for the real part of the complex number- See Also:
setValue(org.jatha.dynatype.LispValue, org.jatha.dynatype.LispValue)
setImaginary
void setImaginary(LispValue imag)
- Sets the real part of a complex number.
- Parameters:
imag
- the new value for the imaginary part of the complex number- See Also:
setValue(org.jatha.dynatype.LispValue, org.jatha.dynatype.LispValue)
setValue
void setValue(LispValue real,
LispValue imag)
- Sets both the real part and the imaginary part of a complex number.
- Parameters:
real
- the new value for the real part of the complex numberimag
- the new value for the imaginary part of the complex number- See Also:
setValue(org.jatha.dynatype.LispValue, org.jatha.dynatype.LispValue)
polar
void polar(double length,
double angle)
- Sets the real part of this Complex number to length*cos(angle) and
sets the imaginary part to length*sin(angle) where lengthis the first argument
and angle is the argument (in radians)
- Parameters:
length
- angle
-
getReal
LispValue getReal()
- Returns the real part of the complex number.
getImaginary
LispValue getImaginary()
- Returns the imaginary part of the complex number.
abs
double abs(LispComplex a)
squareAbs
double squareAbs()
squareAbs
double squareAbs(LispComplex a)
arg
double arg()
arg
double arg(LispComplex a)
conjugate
LispComplex conjugate()
conjugate
LispComplex conjugate(LispComplex a)
plus
LispComplex plus(LispComplex a)
plus
LispComplex plus(LispComplex a,
LispComplex b)
plus
LispComplex plus(double a)
plus
LispComplex plus(LispComplex a,
double b)
plus
LispComplex plus(double a,
LispComplex b)
plus
LispComplex plus(double a,
double b)
plusEquals
void plusEquals(LispComplex a)
plusEquals
void plusEquals(double a)
minus
LispComplex minus(LispComplex a)
minus
LispComplex minus(LispComplex a,
LispComplex b)
minus
LispComplex minus(double a)
minus
LispComplex minus(LispComplex a,
double b)
transposedMinus
LispComplex transposedMinus(double a)
minus
LispComplex minus(double a,
LispComplex b)
minus
LispComplex minus(double a,
double b)
minusEquals
void minusEquals(LispComplex a)
minusEquals
void minusEquals(double a)
setInfOption
void setInfOption(int opt)
getInfOption
boolean getInfOption()
times
LispComplex times(LispComplex a)
times
LispComplex times(LispComplex a,
LispComplex b)
times
LispComplex times(double a)
times
LispComplex times(LispComplex a,
double b)
times
LispComplex times(double a,
LispComplex b)
times
LispComplex times(double a,
double b)
timesEquals
void timesEquals(LispComplex a)
timesEquals
void timesEquals(double a)
over
LispComplex over(LispComplex a)
over
LispComplex over(LispComplex a,
LispComplex b)
over
LispComplex over(double a)
over
LispComplex over(LispComplex a,
double b)
transposedOver
LispComplex transposedOver(double a)
over
LispComplex over(double a,
LispComplex b)
over
LispComplex over(double a,
double b)
overEquals
void overEquals(LispComplex a)
overEquals
void overEquals(double a)
inverse
LispComplex inverse()
inverse
LispComplex inverse(LispComplex a)
negate
LispComplex negate(LispComplex a)
exp
LispComplex exp(LispComplex aa)
exp
LispComplex exp(double aa)
expPlusJayArg
LispComplex expPlusJayArg(double arg)
expMinusJayArg
LispComplex expMinusJayArg(double arg)
log
LispComplex log(LispComplex aa)
sqrt
LispComplex sqrt(LispComplex aa)
nthRoot
LispComplex nthRoot(LispComplex aa,
int n)
square
LispComplex square(LispComplex aa)
pow
LispComplex pow(LispComplex a,
int b)
pow
LispComplex pow(LispComplex a,
double b)
pow
LispComplex pow(LispComplex a,
LispComplex b)
pow
LispComplex pow(int a,
LispComplex b)
pow
LispComplex pow(double a,
LispComplex b)
asin
LispComplex asin(LispComplex aa)
cos
LispComplex cos(LispComplex aa)
acos
LispComplex acos(LispComplex aa)
tan
LispComplex tan(LispComplex aa)
atan
LispComplex atan(LispComplex aa)
sinh
LispComplex sinh(LispComplex aa)
asinh
LispComplex asinh(LispComplex aa)
cosh
LispComplex cosh(LispComplex aa)
acosh
LispComplex acosh(LispComplex aa)
tanh
LispComplex tanh(LispComplex aa)
atanh
LispComplex atanh(LispComplex aa)
hypot
double hypot(LispComplex aa,
LispComplex bb)
isEqual
boolean isEqual(LispComplex a,
LispComplex b)
isEqualWithinLimits
boolean isEqualWithinLimits(LispComplex x,
double limit)
isEqualWithinLimits
boolean isEqualWithinLimits(LispComplex a,
LispComplex b,
double limit)
isReal
boolean isReal()
isReal
boolean isReal(LispComplex a)
isZero
boolean isZero()
isZero
boolean isZero(LispComplex a)
isInfinite
boolean isInfinite()
isInfinite
boolean isInfinite(LispComplex a)
isPlusInfinity
boolean isPlusInfinity()
isPlusInfinity
boolean isPlusInfinity(LispComplex a)
isMinusInfinity
boolean isMinusInfinity()
isMinusInfinity
boolean isMinusInfinity(LispComplex a)
isNaN
boolean isNaN()
isNaN
boolean isNaN(LispComplex a)
oneDarray
LispComplex[] oneDarray(int n)
oneDarray
LispComplex[] oneDarray(int n,
double a,
double b)
oneDarray
LispComplex[] oneDarray(int n,
LispComplex xx)
twoDarray
LispComplex[][] twoDarray(int n,
int m)
twoDarray
LispComplex[][] twoDarray(int n,
int m,
double a,
double b)
twoDarray
LispComplex[][] twoDarray(int n,
int m,
LispComplex xx)
copy
LispComplex copy(LispComplex a)
copy
LispComplex[] copy(LispComplex[] a)
copy
LispComplex[][] copy(LispComplex[][] a)
zero
LispComplex zero()
plusOne
LispComplex plusOne()
minusOne
LispComplex minusOne()
plusJay
LispComplex plusJay()
minusJay
LispComplex minusJay()
pi
LispComplex pi()
twoPiJay
LispComplex twoPiJay()