| Top |
Functions
| #define | AGS_FUNCTION_GET_OBJ_MUTEX() |
|
|
ags_function_collapse_parantheses () |
|
|
ags_function_find_literals () |
|
|
ags_function_literal_solve () |
|
|
ags_function_push_equation () |
|
|
ags_function_pop_equation () |
|
|
ags_function_get_expanded () |
|
|
ags_function_get_normalized () |
| AgsComplex * | ags_function_compute_term () |
| AgsComplex ** | ags_function_symbolic_translate_value () |
|
|
ags_function_substitute_values () |
| AgsComplex * | ags_function_translate_value () |
|
|
ags_function_add_matrix () |
|
|
ags_function_remove_matrix () |
| AgsFunction * | ags_function_new () |
Properties
|
|
normalized-function | Read / Write |
| pivot-table | Read / Write | |
|
|
source-function | Read / Write |
Functions
AGS_FUNCTION_GET_OBJ_MUTEX()
#define AGS_FUNCTION_GET_OBJ_MUTEX(obj) (&(((AgsFunction *) obj)->obj_mutex))
ags_function_collapse_parantheses ()
gchar ** ags_function_collapse_parantheses (AgsFunction *function,);guint *function_count
Collapse parantheses by respecting many possibilities.
Parameters
function |
the |
|
function_count |
return location of count of possible functions. |
[out] |
Since:
ags_function_find_literals ()
gchar ** ags_function_find_literals (AgsFunction *function,);guint *symbol_count
Find literal symbols i.e. variable names.
Since:
ags_function_literal_solve ()
void ags_function_literal_solve (AgsFunction *function);
Solves :source-function literally, allocates the pivot table and creates the normalized function.
Since:
ags_function_push_equation ()
gboolean ags_function_push_equation (AgsFunction *function,);gchar *equation
Push an equation to the solver stack.
Since:
ags_function_pop_equation ()
void ags_function_pop_equation (AgsFunction *function,);GError **error
Pops the functions of the equation stack. Call this function as you're finished with pushing equations.
Since:
ags_function_get_expanded ()
gchar * ags_function_get_expanded (AgsFunction *function,,gchar **symbol);guint symbol_count
Expands symbols
to normalized form.
Since:
ags_function_get_normalized ()
gchar * ags_function_get_normalized (AgsFunction *function);
Get internal normalized string.
Since:
ags_function_compute_term ()
AgsComplex * ags_function_compute_term (,gchar *term,gchar *substitute_symbolAgsComplex *substitute_value);
Compute term by substituting substitute_symbol
with substitue_value
and do basic
solving.
Parameters
term |
the term as string to compute |
|
substitute_symbol |
a variable to substitute |
|
substitute_value |
the AgsComplex value representing |
Since:
ags_function_symbolic_translate_value ()
AgsComplex ** ags_function_symbolic_translate_value (AgsFunction *function,,gchar *symbolAgsComplex *value);
Symbolic translate to value
for symbol
and compute resulting
vector.
Since:
ags_function_substitute_values ()
gboolean ags_function_substitute_values (AgsFunction *function,,gchar *symbol...);
Verify :source-function to be TRUEFALSE
Parameters
function |
the AgsFunction |
|
symbol |
the first symbol as string, or |
|
... |
|
Since:
ags_function_translate_value ()
AgsComplex * ags_function_translate_value (AgsFunction *function,AgsComplex *value);
Translates value
by source function.
Since:
ags_function_add_matrix ()
void ags_function_add_matrix (AgsFunction *function,AgsSolverMatrix *solver_matrix);
Add solver_matrix
to function
.
Since:
ags_function_remove_matrix ()
void ags_function_remove_matrix (AgsFunction *function,AgsSolverMatrix *solver_matrix);
Remove solver_matrix
from function
.
Since:
ags_function_new ()
AgsFunction *
ags_function_new (gchar *source_function);
Instantiate a new AgsFunction.
Since:
Types and Values
enum AgsFunctionFlags
Enum values to control the behavior or indicate internal state of AgsFunction by enable/disable as flags.