com.bc.jexp.impl
Class DefaultNamespace
java.lang.Object
com.bc.jexp.impl.NamespaceImpl
com.bc.jexp.impl.DefaultNamespace
- All Implemented Interfaces:
- Namespace, WritableNamespace
public final class DefaultNamespace
- extends NamespaceImpl
A default namespace which includes the constants PI, E and NaN as well as most of the functions from
Java Math, e.g.
sin(x),
cos(x),
tan(x),
asin(x),
acos(x),
atan(x),
atan2(x,y),
log(x),
exp(x),
pow(x,y),
sqrt(x,y),
abs(x),
min(x,y),
max(x,y),
floor(x),
rad(x) (Math.toRadians(double)),
deg(x,y) (Math.toDegrees(double)).
inf(x,y) (Double.isInfinite(double)),
nan(x,y) (Double.isNaN(double)).
The following functions are not taken from Java Java Math:
log10(x),
exp10(x),
sign(x).
It also provides the fuzzy comparision functions
feq(x, y),
fneq(x).
- Version:
- $Revision$ $Date$
- Author:
- Norman Fomferra (norman.fomferra@brockmann-consult.de)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultNamespace
public DefaultNamespace()
DefaultNamespace
public DefaultNamespace(Namespace parent)
Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.