OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ArithmeticLink.cc File Reference
#include <limits>
#include <opencog/atomspace/atom_types.h>
#include <opencog/atomspace/ClassServer.h>
#include <opencog/atoms/NumberNode.h>
#include <opencog/atoms/execution/Instantiator.h>
#include "ArithmeticLink.h"
+ Include dependency graph for ArithmeticLink.cc:

Go to the source code of this file.

Functions

static double get_double (AtomSpace *as, Handle h)
 

Function Documentation

static double get_double ( AtomSpace as,
Handle  h 
)
inlinestatic

execute() – Execute the expression, returning a number

Similar to reduce(), above, except that this can only work on fully grounded (closed) sentences: after executation, everything must be a number, and there can be no variables in sight.

Definition at line 148 of file ArithmeticLink.cc.

References opencog::classserver(), opencog::Atom::getType(), and opencog::NumberNodeCast().

+ Here is the caller graph for this function: