com.bc.jexp.impl
Class DefaultNamespace

java.lang.Object
  extended by com.bc.jexp.impl.NamespaceImpl
      extended by 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)

Constructor Summary
DefaultNamespace()
           
DefaultNamespace(Namespace parent)
           
 
Method Summary
 
Methods inherited from class com.bc.jexp.impl.NamespaceImpl
deregisterFunction, deregisterSymbol, getAllFunctions, getAllSymbols, getDefaultNamespace, registerFunction, registerSymbol, resolveFunction, resolveSymbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNamespace

public DefaultNamespace()

DefaultNamespace

public DefaultNamespace(Namespace parent)


Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.