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 () |
AgsFunction * | ags_function_new () |
#define | AGS_FUNCTION() |
#define | AGS_FUNCTION_CLASS() |
#define | AGS_FUNCTION_GET_CLASS() |
#define | AGS_IS_FUNCTION() |
|
ags_function_get_type () |
Properties
|
normalized-function | Read / Write |
pivot-table | Read / Write | |
|
source-function | Read / Write |
Types and Values
#define | AGS_SYMBOLIC_EULER |
#define | AGS_SYMBOLIC_PI |
#define | AGS_SYMBOLIC_INFINIT |
#define | AGS_SYMBOLIC_COMPLEX_UNIT |
enum | AgsFunctionFlags |
#define | AGS_TYPE_FUNCTION |
struct | AgsFunction |
struct | AgsFunctionClass |
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.
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 TRUE
FALSE
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_new ()
AgsFunction *
ags_function_new (gchar *source_function
);
Instantiate a new AgsFunction.
Since:
AGS_FUNCTION()
#define AGS_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FUNCTION, AgsFunction))
AGS_FUNCTION_CLASS()
#define AGS_FUNCTION_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FUNCTION, AgsFunctionClass))
AGS_FUNCTION_GET_CLASS()
#define AGS_FUNCTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_FUNCTION, AgsFunctionClass))
AGS_IS_FUNCTION()
#define AGS_IS_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FUNCTION))
Types and Values
enum AgsFunctionFlags
Enum values to control the behavior or indicate internal state of AgsFunction by enable/disable as flags.