Logo Search packages:      
Sourcecode: wims version File versions

synchronized void org::javia::arity::Symbols::define ( String  name,
Function  function 
) [inline]

Adds a new function symbol to the top-most frame of this Symbols.

name the name of the function (e.g. "sin")
function the function to which the name maps

Definition at line 132 of file Symbols.java.

References addConstant(), and eval().

Referenced by define(), org::javia::arity::UnitTest::main(), and Symbols().

        if (function instanceof Constant) {            
            addConstant(name, ((Constant) function).eval());
        } else {
            add(new Symbol(name, function));

Generated by  Doxygen 1.6.0   Back to index