Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

processAST.h File Reference

#include <sbml/SBMLTypes.h>
#include "sbmlsolver/cvodedata.h"
#include "sbmlsolver/exportdefs.h"

Include dependency graph for processAST.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MySQR(x)   ((x)*(x))
#define MySQRT(x)   pow((x),(.5))
#define child(x, y)   ASTNode_getChild(x,y)
#define child2(x, y, z)   ASTNode_getChild(ASTNode_getChild(x,y),z)
#define child3(x, y, z, w)   ASTNode_getChild(ASTNode_getChild(ASTNode_getChild(x,y),z),w)

Functions

SBML_ODESOLVER_API double evaluateAST (ASTNode_t *n, cvodeData_t *data)
 Evaluates the passed formula n by a simple recursion and returns the result as a double value.
SBML_ODESOLVER_API ASTNode_t * differentiateAST (ASTNode_t *f, char *x)
 Returns the derivative f' of the passed formula f with respect to the passed variable x, using basic differentiation rules.
SBML_ODESOLVER_API ASTNode_t * AST_simplify (ASTNode_t *f)
SBML_ODESOLVER_API void setUserDefinedFunction (double(*udf)(char *, int, double *))
 Sets function pointer for user defined function to udf.
SBML_ODESOLVER_API ASTNode_t * copyAST (const ASTNode_t *f)
 Copies the passed AST, including potential SOSlib ASTNodeIndex, and returns the copy.
SBML_ODESOLVER_API ASTNode_t * determinantNAST (ASTNode_t ***A, int N)
 !! experimental function determinantNAST !! NOT TESTED !! !! WILL RUN OUT OF MEMORY FOR BIG SYSTEMS !! calculates the determinant of the jacobian matrix, is not used and can only be activated with hidden commandline option -d.
ASTNode_t * indexAST (const ASTNode_t *f, int nvalues, char **names)
 Takes an AST and a string array `names' and converts AST_NAME to AST_IndexName, which holds the name of the variable and additionally its index in the passed array `names'.
SBML_ODESOLVER_API ASTNode_t * simplifyAST (ASTNode_t *f)
 Takes an AST f, and returns a simplified copy of f.


Define Documentation

#define MySQR  )     ((x)*(x))
 

#define MySQRT  )     pow((x),(.5))
 

#define child x,
 )     ASTNode_getChild(x,y)
 

#define child2 x,
y,
 )     ASTNode_getChild(ASTNode_getChild(x,y),z)
 

#define child3 x,
y,
z,
 )     ASTNode_getChild(ASTNode_getChild(ASTNode_getChild(x,y),z),w)
 


Function Documentation

SBML_ODESOLVER_API ASTNode_t* AST_simplify ASTNode_t *  f  ) 
 


Generated on Wed Dec 21 18:10:31 2005 for SBML ODE Solver Library API by  doxygen 1.4.4