|
Jatha Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jatha.dynatype.StandardLispValue org.jatha.dynatype.StandardLispAtom org.jatha.dynatype.StandardLispNumber org.jatha.dynatype.StandardLispComplex
public class StandardLispComplex
StandardLispComplex represents a Complex number.
Field Summary | |
---|---|
protected LispValue |
f_imaginaryPart
|
protected LispValue |
f_realPart
|
Fields inherited from class org.jatha.dynatype.StandardLispValue |
---|
f_lisp |
Constructor Summary | |
---|---|
StandardLispComplex(Jatha lisp)
Creates the complex number (0, 0). |
|
StandardLispComplex(Jatha lisp,
LispValue realPart,
LispValue imaginaryPart)
Creates realPart new complex number with the given real part and imaginary part. |
Methods inherited from class org.jatha.dynatype.StandardLispNumber |
---|
abs, acos, add, asin, atan, atan2, basic_constantp, basic_numberp, ceiling, constantp, cos, cot, csc, degreesToRadians, divide, eql, equalNumeric, factorial, floor, greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual, max, min, multiply, negate, numberp, radiansToDegrees, reciprocal, sec, sin, sqrt, subtract, tan, typep |
Methods inherited from class org.jatha.dynatype.StandardLispAtom |
---|
atom, basic_atom |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected LispValue f_realPart
protected LispValue f_imaginaryPart
Constructor Detail |
---|
public StandardLispComplex(Jatha lisp)
public StandardLispComplex(Jatha lisp, LispValue realPart, LispValue imaginaryPart)
realPart
- imaginaryPart
- Method Detail |
---|
public String toString()
StandardLispValue
toString()
returns a printed representation
of the form (as printed by (prin1)
) in
a Java string.
toString
in interface LispValue
toString
in class StandardLispValue
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setImaginary(LispValue imaginaryPart)
LispComplex
setImaginary
in interface LispComplex
imaginaryPart
- the new value for the imaginary part of the complex numberLispComplex.setValue(org.jatha.dynatype.LispValue, org.jatha.dynatype.LispValue)
public LispValue getImaginary()
LispComplex
getImaginary
in interface LispComplex
public LispValue getReal()
LispComplex
getReal
in interface LispComplex
public void setReal(LispValue realPart)
LispComplex
setReal
in interface LispComplex
realPart
- the new value for the real part of the complex numberLispComplex.setValue(org.jatha.dynatype.LispValue, org.jatha.dynatype.LispValue)
public double abs(LispComplex a)
abs
in interface LispComplex
public LispComplex acos(LispComplex aa)
acos
in interface LispComplex
public LispComplex acosh(LispComplex aa)
acosh
in interface LispComplex
public double arg()
arg
in interface LispComplex
public double arg(LispComplex a)
arg
in interface LispComplex
public LispComplex asin(LispComplex aa)
asin
in interface LispComplex
public LispComplex asinh(LispComplex aa)
asinh
in interface LispComplex
public LispComplex atan(LispComplex aa)
atan
in interface LispComplex
public LispComplex atanh(LispComplex aa)
atanh
in interface LispComplex
public LispComplex conjugate()
conjugate
in interface LispComplex
public LispComplex conjugate(LispComplex a)
conjugate
in interface LispComplex
public LispComplex copy(LispComplex a)
copy
in interface LispComplex
public LispComplex[] copy(LispComplex[] a)
copy
in interface LispComplex
public LispComplex[][] copy(LispComplex[][] a)
copy
in interface LispComplex
public LispComplex cos(LispComplex aa)
cos
in interface LispComplex
public LispComplex cosh(LispComplex aa)
cosh
in interface LispComplex
public LispComplex exp(double aa)
exp
in interface LispComplex
public LispComplex exp(LispComplex aa)
exp
in interface LispComplex
public LispComplex expMinusJayArg(double arg)
expMinusJayArg
in interface LispComplex
public LispComplex expPlusJayArg(double arg)
expPlusJayArg
in interface LispComplex
public BigInteger getBigIntegerValue()
getBigIntegerValue
in interface LispNumber
public double getDoubleValue()
LispNumber
getDoubleValue
in interface LispNumber
getDoubleValue
in class StandardLispNumber
public boolean getInfOption()
getInfOption
in interface LispComplex
public long getLongValue()
getLongValue
in interface LispNumber
public double hypot(LispComplex aa, LispComplex bb)
hypot
in interface LispComplex
public LispComplex inverse()
inverse
in interface LispComplex
public LispComplex inverse(LispComplex a)
inverse
in interface LispComplex
public boolean isEqual(LispComplex a, LispComplex b)
isEqual
in interface LispComplex
public boolean isEqualWithinLimits(LispComplex a, LispComplex b, double limit)
isEqualWithinLimits
in interface LispComplex
public boolean isEqualWithinLimits(LispComplex x, double limit)
isEqualWithinLimits
in interface LispComplex
public boolean isInfinite()
isInfinite
in interface LispComplex
public boolean isInfinite(LispComplex a)
isInfinite
in interface LispComplex
public boolean isMinusInfinity()
isMinusInfinity
in interface LispComplex
public boolean isMinusInfinity(LispComplex a)
isMinusInfinity
in interface LispComplex
public boolean isNaN()
isNaN
in interface LispComplex
public boolean isNaN(LispComplex a)
isNaN
in interface LispComplex
public boolean isPlusInfinity()
isPlusInfinity
in interface LispComplex
public boolean isPlusInfinity(LispComplex a)
isPlusInfinity
in interface LispComplex
public boolean isReal()
isReal
in interface LispComplex
public boolean isReal(LispComplex a)
isReal
in interface LispComplex
public boolean isZero()
isZero
in interface LispComplex
public boolean isZero(LispComplex a)
isZero
in interface LispComplex
public LispComplex log(LispComplex aa)
log
in interface LispComplex
public LispComplex minus(double a)
minus
in interface LispComplex
public LispComplex minus(double a, double b)
minus
in interface LispComplex
public LispComplex minus(double a, LispComplex b)
minus
in interface LispComplex
public LispComplex minus(LispComplex a)
minus
in interface LispComplex
public LispComplex minus(LispComplex a, double b)
minus
in interface LispComplex
public LispComplex minus(LispComplex a, LispComplex b)
minus
in interface LispComplex
public void minusEquals(double a)
minusEquals
in interface LispComplex
public void minusEquals(LispComplex a)
minusEquals
in interface LispComplex
public LispComplex minusJay()
minusJay
in interface LispComplex
public LispComplex minusOne()
minusOne
in interface LispComplex
public LispComplex negate(LispComplex a)
negate
in interface LispComplex
public LispComplex nthRoot(LispComplex aa, int n)
nthRoot
in interface LispComplex
public LispComplex[] oneDarray(int n)
oneDarray
in interface LispComplex
public LispComplex[] oneDarray(int n, double a, double b)
oneDarray
in interface LispComplex
public LispComplex[] oneDarray(int n, LispComplex xx)
oneDarray
in interface LispComplex
public LispComplex over(double a)
over
in interface LispComplex
public LispComplex over(double a, double b)
over
in interface LispComplex
public LispComplex over(double a, LispComplex b)
over
in interface LispComplex
public LispComplex over(LispComplex a)
over
in interface LispComplex
public LispComplex over(LispComplex a, double b)
over
in interface LispComplex
public LispComplex over(LispComplex a, LispComplex b)
over
in interface LispComplex
public void overEquals(double a)
overEquals
in interface LispComplex
public void overEquals(LispComplex a)
overEquals
in interface LispComplex
public LispComplex pi()
pi
in interface LispComplex
public LispComplex plus(double a)
plus
in interface LispComplex
public LispComplex plus(double a, double b)
plus
in interface LispComplex
public LispComplex plus(double a, LispComplex b)
plus
in interface LispComplex
public LispComplex plus(LispComplex a)
plus
in interface LispComplex
public LispComplex plus(LispComplex a, double b)
plus
in interface LispComplex
public LispComplex plus(LispComplex a, LispComplex b)
plus
in interface LispComplex
public void plusEquals(double a)
plusEquals
in interface LispComplex
public void plusEquals(LispComplex a)
plusEquals
in interface LispComplex
public LispComplex plusJay()
plusJay
in interface LispComplex
public LispComplex plusOne()
plusOne
in interface LispComplex
public void polar(double length, double angle)
polar
in interface LispComplex
length
- angle
- public LispComplex pow(double a, LispComplex b)
pow
in interface LispComplex
public LispComplex pow(int a, LispComplex b)
pow
in interface LispComplex
public LispComplex pow(LispComplex a, double b)
pow
in interface LispComplex
public LispComplex pow(LispComplex a, int b)
pow
in interface LispComplex
public LispComplex pow(LispComplex a, LispComplex b)
pow
in interface LispComplex
public void setInfOption(int opt)
setInfOption
in interface LispComplex
public void setValue(LispValue real, LispValue imag)
setValue
in interface LispComplex
real
- the new value for the real part of the complex numberimag
- the new value for the imaginary part of the complex numbersetValue(org.jatha.dynatype.LispValue, org.jatha.dynatype.LispValue)
public LispComplex sinh(LispComplex aa)
sinh
in interface LispComplex
public LispComplex sqrt(LispComplex aa)
sqrt
in interface LispComplex
public LispComplex square(LispComplex aa)
square
in interface LispComplex
public double squareAbs()
squareAbs
in interface LispComplex
public double squareAbs(LispComplex a)
squareAbs
in interface LispComplex
public LispComplex tan(LispComplex aa)
tan
in interface LispComplex
public LispComplex tanh(LispComplex aa)
tanh
in interface LispComplex
public LispComplex times(double a)
times
in interface LispComplex
public LispComplex times(double a, double b)
times
in interface LispComplex
public LispComplex times(double a, LispComplex b)
times
in interface LispComplex
public LispComplex times(LispComplex a)
times
in interface LispComplex
public LispComplex times(LispComplex a, double b)
times
in interface LispComplex
public LispComplex times(LispComplex a, LispComplex b)
times
in interface LispComplex
public void timesEquals(double a)
timesEquals
in interface LispComplex
public void timesEquals(LispComplex a)
timesEquals
in interface LispComplex
public LispComplex transposedMinus(double a)
transposedMinus
in interface LispComplex
public LispComplex transposedOver(double a)
transposedOver
in interface LispComplex
public LispComplex[][] twoDarray(int n, int m)
twoDarray
in interface LispComplex
public LispComplex[][] twoDarray(int n, int m, double a, double b)
twoDarray
in interface LispComplex
public LispComplex[][] twoDarray(int n, int m, LispComplex xx)
twoDarray
in interface LispComplex
public LispComplex twoPiJay()
twoPiJay
in interface LispComplex
public LispComplex zero()
zero
in interface LispComplex
|
Jatha Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |