SCalc
|
#include <functions.hh>
Public Member Functions | |
ExprFunc (Session *s, Expression *expr, int nb_args) | |
construction of the function. | |
virtual void | destroy_anonymous_derivatives () |
Delete the derivative if anonymous. More... | |
virtual FuncDef * | derivative (int nb) |
The derivative with regards to the argument nb. More... | |
virtual double | evaluate (const double *vars, const double *args) |
The function doing the actual job... pretty easy, isn't it ? More... | |
virtual std::string | pretty_print () |
Pretty printing of the result ? More... | |
![]() | |
FuncDef (Session *s, int nb) | |
virtual int | is_func_def () |
Yes, this is a function definition. More... | |
virtual std::string | pretty_print () |
Pretty printing of the result ? More... | |
int | register_self () |
Register the function to the session if it has a name. | |
int | nb_params () |
The number of params the function takes. | |
void | set_name (const char *name) |
std::string | name () |
virtual double | evaluate (const double *vars, const double *args)=0 |
virtual FuncDef * | derivative (int nb)=0 |
The derivative with regards to the argument nb. More... | |
virtual void | destroy_anonymous_derivatives () |
Delete the derivative if anonymous. More... | |
virtual int | can_delete () |
![]() | |
ParserResult (Session *s) | |
Constructors/desctructors: | |
Session * | session () |
The SCalc::Session object used. More... | |
virtual int | is_expression () |
Is it a SCalc::Expression ? More... | |
Expression * | to_expression () |
Converts to SCalc::Expression. More... | |
virtual int | is_syntax_error () |
Is it a SCalc::SyntaxError ? More... | |
SyntaxError * | to_syntax_error () |
Converts to SCalc::SyntaxError. More... | |
FuncDef * | to_func_def () |
Converts to SCalc::FuncDef. More... | |
Additional Inherited Members | |
![]() | |
static void | register_common_functions (Session *sess) |
This function registers common functions to the given session. | |
![]() | |
int | _nb_params |
std::string | _name |
An expression-based definition of a function
|
virtual |
The derivative with regards to the argument nb.
Implements SCalc::FuncDef.
|
virtual |
Delete the derivative if anonymous.
Reimplemented from SCalc::FuncDef.
|
inlinevirtual |
The function doing the actual job... pretty easy, isn't it ?
Implements SCalc::FuncDef.
References SCalc::Expression::evaluate().
|
virtual |
Pretty printing of the result ?
Reimplemented from SCalc::FuncDef.