|
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
public abstract class StandardLispNumber
LispNumber is an abstract class that implements the Common LISP NUMBER type. It contains the definitions of add, subtract, multiply and divide.
LispValue
,
LispAtom
,
LispInteger
,
LispReal
Field Summary |
---|
Fields inherited from class org.jatha.dynatype.StandardLispValue |
---|
f_lisp |
Constructor Summary | |
---|---|
StandardLispNumber()
|
|
StandardLispNumber(Jatha lisp)
|
Method Summary | |
---|---|
LispValue |
abs()
Default implementation of abs. |
LispValue |
acos()
Arccos function with result in radians. |
LispValue |
add(LispValue args)
ADD adds any combination of real or integer numbers. |
LispValue |
asin()
Arcsin function with result in radians. |
LispValue |
atan()
Arctan function with result in radians. |
LispValue |
atan2(LispValue x)
Two-argument Arctan function with result in radians Also called Inverse Tangent, this is the angle whose tangent is y/x, where y is the first argument and x is the second argument. |
boolean |
basic_constantp()
Returns Java true if the object is a constant. |
boolean |
basic_numberp()
Returns Java true if the object is a number. |
LispValue |
ceiling()
Returns the smallest integer greater than or equal to the input value. |
LispValue |
constantp()
Returns T if the object is a constant. |
LispValue |
cos()
Cosine function, argument in radians. |
LispValue |
cot()
Cotangent function, 1/tan(x), argument in radians. |
LispValue |
csc()
Cosecant function, 1/sin(x), argument in radians. |
LispValue |
degreesToRadians()
Converts a numeric value from degrees to radians. |
LispValue |
divide(LispValue args)
DIVIDE adds any combination of real or integer numbers. |
LispValue |
eql(LispValue arg)
Returns T if the argument is EQ to the object or if the arguments and object are numbers with equal values. |
LispValue |
equalNumeric(LispValue arg)
Returns T if the object is EQUAL to its argument. |
LispValue |
factorial()
Compute the factorial of a non-negative integer. |
LispValue |
floor()
Returns the largest integer less than or equal to the input value. |
abstract double |
getDoubleValue()
Returns a double value corresponding to this value. |
LispValue |
greaterThan(LispValue arg)
Returns T if the object prepended to the argument list is in strictly decreasing order. |
LispValue |
greaterThanOrEqual(LispValue arg)
Returns T if the object prepended to the argument list is in non-increasing order. |
LispValue |
lessThan(LispValue arg)
Returns T if the object prepended to the argument list is in strictly increasing order. |
LispValue |
lessThanOrEqual(LispValue arg)
Returns T if the object prepended to the argument list is in strictly non-decreasing order. |
LispValue |
max(LispValue args)
Returns the max of this number and its arguments, which may be a list of numbers or a single number. |
LispValue |
min(LispValue args)
Returns the min of this number and its arguments, which may be a list of numbers or a single number. |
LispValue |
multiply(LispValue args)
MULTIPLY adds any combination of real or integer numbers. |
LispValue |
negate()
Returns the negative of the given number. |
LispValue |
numberp()
Returns T if the object is any kind of number. |
LispValue |
radiansToDegrees()
Converts a numeric value from radians to degrees. |
LispValue |
reciprocal()
Computes 1/x of the given number. |
LispValue |
sec()
Secant function, 1/cos(x), argument in radians. |
LispValue |
sin()
Sine trigonometric function, argument is in radians. |
LispValue |
sqrt()
Square root. |
LispValue |
subtract(LispValue args)
SUBTRACT adds any combination of real or integer numbers. |
LispValue |
tan()
Tangent trigonometric function, argument is in radians. |
LispValue |
typep(LispValue type)
|
Methods inherited from class org.jatha.dynatype.StandardLispAtom |
---|
atom, basic_atom |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jatha.dynatype.LispNumber |
---|
getBigIntegerValue, getLongValue |
Constructor Detail |
---|
public StandardLispNumber()
public StandardLispNumber(Jatha lisp)
Method Detail |
---|
public boolean basic_constantp()
LispValue
basic_constantp
in interface LispValue
basic_constantp
in class StandardLispValue
public boolean basic_numberp()
LispValue
basic_numberp
in interface LispValue
basic_numberp
in class StandardLispValue
public abstract double getDoubleValue()
LispNumber
getDoubleValue
in interface LispNumber
public LispValue constantp()
LispValue
constantp
in interface LispValue
constantp
in class StandardLispValue
public LispValue abs()
abs
in interface LispValue
abs
in class StandardLispValue
public LispValue degreesToRadians()
degreesToRadians
in interface LispValue
degreesToRadians
in class StandardLispValue
public LispValue radiansToDegrees()
radiansToDegrees
in interface LispValue
radiansToDegrees
in class StandardLispValue
public LispValue factorial()
factorial
in interface LispValue
factorial
in class StandardLispValue
public LispValue max(LispValue args)
max
in interface LispValue
max
in class StandardLispValue
args
- a number or a list of numbers
public LispValue min(LispValue args)
min
in interface LispValue
min
in class StandardLispValue
args
- a number or a list of numbers
public LispValue negate()
negate
in interface LispValue
negate
in class StandardLispValue
public LispValue numberp()
LispValue
numberp
in interface LispValue
numberp
in class StandardLispValue
public LispValue reciprocal()
reciprocal
in interface LispValue
reciprocal
in class StandardLispValue
public LispValue add(LispValue args)
add
in interface LispValue
add
in class StandardLispValue
LispReal
,
LispInteger
public LispValue divide(LispValue args)
divide
in interface LispValue
divide
in class StandardLispValue
LispReal
,
LispInteger
,
LispBignum
public LispValue multiply(LispValue args)
multiply
in interface LispValue
multiply
in class StandardLispValue
LispReal
,
LispInteger
public LispValue subtract(LispValue args)
subtract
in interface LispValue
subtract
in class StandardLispValue
LispReal
,
LispInteger
public LispValue acos()
acos
in interface LispValue
acos
in class StandardLispValue
public LispValue asin()
asin
in interface LispValue
asin
in class StandardLispValue
public LispValue atan()
atan
in interface LispValue
atan
in class StandardLispValue
public LispValue atan2(LispValue x)
atan2
in interface LispValue
atan2
in class StandardLispValue
public LispValue ceiling()
ceiling
in interface LispValue
ceiling
in class StandardLispValue
public LispValue cos()
cos
in interface LispValue
cos
in class StandardLispValue
public LispValue cot()
cot
in interface LispValue
cot
in class StandardLispValue
public LispValue csc()
csc
in interface LispValue
csc
in class StandardLispValue
public LispValue floor()
floor
in interface LispValue
floor
in class StandardLispValue
public LispValue sec()
sec
in interface LispValue
sec
in class StandardLispValue
public LispValue sin()
sin
in interface LispValue
sin
in class StandardLispValue
public LispValue sqrt()
StandardLispValue
sqrt
in interface LispValue
sqrt
in class StandardLispValue
public LispValue tan()
tan
in interface LispValue
tan
in class StandardLispValue
public LispValue typep(LispValue type)
typep
in interface LispValue
typep
in class StandardLispAtom
public LispValue greaterThan(LispValue arg)
LispValue
greaterThan
in interface LispValue
greaterThan
in class StandardLispValue
public LispValue greaterThanOrEqual(LispValue arg)
LispValue
greaterThanOrEqual
in interface LispValue
greaterThanOrEqual
in class StandardLispValue
public LispValue lessThan(LispValue arg)
LispValue
lessThan
in interface LispValue
lessThan
in class StandardLispValue
public LispValue lessThanOrEqual(LispValue arg)
LispValue
lessThanOrEqual
in interface LispValue
lessThanOrEqual
in class StandardLispValue
public LispValue equalNumeric(LispValue arg)
LispValue
equalNumeric
in interface LispValue
equalNumeric
in class StandardLispValue
public LispValue eql(LispValue arg)
LispValue
eql
in interface LispValue
eql
in class StandardLispValue
|
Jatha Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |