Package | Description |
---|---|
gnu.kawa.lispexpr |
Support classes for compiling and running Lisp languages.
|
gnu.kawa.xml |
Classes for using XML within Kawa.
|
gnu.math |
Supports various numeric
types, including complex numbers, efficient bignums, exact rational
numbers, units.
|
Modifier and Type | Method and Description |
---|---|
static RealNum |
LangObjType.coerceRealNum(java.lang.Object value) |
Modifier and Type | Class and Description |
---|---|
class |
XInteger
An integer that is an instance of a more specific integer type.
|
Modifier and Type | Class and Description |
---|---|
class |
DFloNum |
class |
IntFraction
Implementation of exact rational numbers a ratio of two IntNums.
|
class |
IntNum
A class for infinite-precision integers.
|
class |
RatNum
The abstract class of rational numbers.
|
Modifier and Type | Method and Description |
---|---|
static RealNum |
RealNum.add(RealNum x,
RealNum y,
int k) |
RealNum |
Complex.angle() |
RealNum |
Quaternion.angle() |
RealNum |
RealNum.angle() |
static RealNum |
RealNum.asRealNumOrNull(java.lang.Object value) |
RealNum |
Complex.colatitude() |
RealNum |
Quaternion.colatitude() |
RealNum |
RealNum.cos() |
static RealNum |
RealNum.divide(RealNum x,
RealNum y) |
RealNum |
CQuaternion.im() |
RealNum |
DQuaternion.im() |
RealNum |
CComplex.im() |
RealNum |
Quantity.im()
The value of the imaginary component, as a RealNum.
|
RealNum |
RealNum.im() |
RealNum |
DComplex.im() |
RealNum |
CQuaternion.jm() |
RealNum |
DQuaternion.jm() |
RealNum |
Complex.jm() |
RealNum |
Quantity.jm()
The value of the "j" component, as a RealNum.
|
RealNum |
CQuaternion.km() |
RealNum |
DQuaternion.km() |
RealNum |
Complex.km() |
RealNum |
Quantity.km()
The value of the "k" component, as a RealNum.
|
RealNum |
Complex.longitude() |
RealNum |
Quaternion.longitude() |
RealNum |
RealNum.max(RealNum x) |
RealNum |
RealNum.min(RealNum x) |
static RealNum |
RatNum.rationalize(RealNum x,
RealNum y)
Calcaulte the simplest rational between two reals.
|
RealNum |
CQuaternion.re() |
RealNum |
DQuaternion.re() |
RealNum |
DQuantity.re() |
RealNum |
CComplex.re() |
RealNum |
Quantity.re()
The value of the real component, as a RealNum.
|
RealNum |
RealNum.re() |
RealNum |
DComplex.re() |
RealNum |
RealNum.rneg() |
RealNum |
RealNum.sin() |
RealNum |
RealNum.tan() |
static RealNum |
RealNum.times(RealNum x,
RealNum y) |
RealNum |
RealNum.toInexact() |
RealNum |
RatNum.toInt(int rounding_mode) |
RealNum |
IntNum.toInt(int rounding_mode) |
RealNum |
RealNum.toInt(int rounding_mode)
Converts a real to an integer, according to a specified rounding mode.
|
Modifier and Type | Method and Description |
---|---|
static RealNum |
RealNum.add(RealNum x,
RealNum y,
int k) |
static RealNum |
RealNum.divide(RealNum x,
RealNum y) |
void |
FixedRealFormat.format(RealNum number,
java.lang.StringBuffer sbuf,
java.text.FieldPosition fpos) |
static Complex |
Complex.make(RealNum re,
RealNum im) |
static Quaternion |
Quaternion.make(RealNum re,
RealNum im,
RealNum jm,
RealNum km) |
static Quantity |
Quantity.make(RealNum re,
RealNum im,
RealNum jm,
RealNum km,
Unit unit) |
RealNum |
RealNum.max(RealNum x) |
RealNum |
RealNum.min(RealNum x) |
static Complex |
Complex.polar(RealNum r,
RealNum t) |
static Quaternion |
Quaternion.polar(RealNum r,
RealNum t,
RealNum u,
RealNum v) |
static RealNum |
RatNum.rationalize(RealNum x,
RealNum y)
Calcaulte the simplest rational between two reals.
|
static RealNum |
RealNum.times(RealNum x,
RealNum y) |
java.lang.String |
Unit.toString(RealNum val) |
Constructor and Description |
---|
CComplex(RealNum real,
RealNum imag) |
CQuantity(RealNum real,
RealNum imag,
RealNum jmag,
RealNum kmag,
Unit unit) |
CQuantity(RealNum real,
RealNum imag,
Unit unit) |
CQuaternion(RealNum real,
RealNum imag,
RealNum jmag,
RealNum kmag) |