Top |
void | ags_math_util_find_parenthesis_all () |
void | ags_math_util_find_exponent_parenthesis () |
void | ags_math_util_find_function_parenthesis () |
void | ags_math_util_find_term_parenthesis () |
gboolean | ags_math_util_match_sign () |
gboolean | ags_math_util_match_coefficient () |
gboolean | ags_math_util_match_symbol () |
gboolean | ags_math_util_match_exponent () |
gboolean | ags_math_util_match_operator () |
gboolean | ags_math_util_match_function () |
gboolean | ags_math_util_coefficient_to_complex () |
AgsComplex * | ags_math_util_multiply_coefficient_all () |
gchar * | ags_math_util_find_function () |
gchar * | ags_math_util_find_symbol () |
gchar ** | ags_math_util_find_symbol_all () |
gboolean | ags_math_util_is_term () |
void | ags_math_util_split_polynomial () |
void | ags_math_util_split_sum () |
#define | AGS_SYMBOLIC_EULER |
#define | AGS_SYMBOLIC_PI |
#define | AGS_SYMBOLIC_INFINIT |
#define | AGS_SYMBOLIC_COMPLEX_UNIT |
#define | AGS_SUBSCRIPT_0 |
#define | AGS_SUBSCRIPT_1 |
#define | AGS_SUBSCRIPT_2 |
#define | AGS_SUBSCRIPT_3 |
#define | AGS_SUBSCRIPT_4 |
#define | AGS_SUBSCRIPT_5 |
#define | AGS_SUBSCRIPT_6 |
#define | AGS_SUBSCRIPT_7 |
#define | AGS_SUBSCRIPT_8 |
#define | AGS_SUBSCRIPT_9 |
void ags_math_util_find_parenthesis_all (gchar *str
,gint **open_position
,gint **close_position
,guint *open_position_count
,guint *close_position_count
);
Find all parenthesis.
str |
the string |
|
open_position |
open position array return location. |
[out] |
close_position |
close position array return location. |
[out] |
open_position_count |
open position count return location. |
[out] |
close_position_count |
close position count return location. |
[out] |
Since: 3.2.0
void ags_math_util_find_exponent_parenthesis (gchar *str
,gint **exponent_open_position
,gint **exponent_close_position
,guint *exponent_open_position_count
,guint *exponent_close_position_count
);
Find exponent parenthesis.
str |
the string |
|
exponent_open_position |
exponent open position array return location. |
[out] |
exponent_close_position |
exponent close position array return location. |
[out] |
exponent_open_position_count |
exponent open position count return location. |
[out] |
exponent_close_position_count |
exponent close position count return location. |
[out] |
Since: 3.2.0
void ags_math_util_find_function_parenthesis (gchar *str
,gint **function_open_position
,gint **function_close_position
,guint *function_open_position_count
,guint *function_close_position_count
);
Find function parenthesis.
str |
the string |
|
function_open_position |
function open position array return location. |
[out] |
function_close_position |
function close position array return location. |
[out] |
function_open_position_count |
function open position count return location. |
[out] |
function_close_position_count |
function close position count return location. |
[out] |
Since: 3.2.0
void ags_math_util_find_term_parenthesis (gchar *str
,gint **term_open_position
,gint **term_close_position
,guint *term_open_position_count
,guint *term_close_position_count
);
Find term parenthesis.
str |
the string |
|
term_open_position |
term open position array return location. |
[out] |
term_close_position |
term close position array return location. |
[out] |
term_open_position_count |
term open position count return location. |
[out] |
term_close_position_count |
term close position count return location. |
[out] |
Since: 3.2.0
gboolean ags_math_util_match_sign (gchar *offset
,gchar *end_ptr
,gchar **start_offset
,gchar **end_offset
);
Match sign.
offset |
the string pointer |
|
end_ptr |
the end of |
|
start_offset |
points to start offset of matched, otherwise |
[out][transfer none] |
end_offset |
points to end offset of matched, otherwise |
[out][transfer none] |
Since: 3.6.0
gboolean ags_math_util_match_coefficient (gchar *offset
,gchar *end_ptr
,gchar **start_offset
,gchar **end_offset
);
Match coefficient including optional sign.
offset |
the string pointer |
|
end_ptr |
the end of |
|
start_offset |
points to start offset of matched, otherwise |
[out][transfer none] |
end_offset |
points to end offset of matched, otherwise |
[out][transfer none] |
Since: 3.6.0
gboolean ags_math_util_match_symbol (gchar *offset
,gchar *end_ptr
,gchar **start_offset
,gchar **end_offset
);
Match symbol including optional sign.
offset |
the string pointer |
|
end_ptr |
the end of |
|
start_offset |
points to start offset of matched, otherwise |
[out][transfer none] |
end_offset |
points to end offset of matched, otherwise |
[out][transfer none] |
Since: 3.6.0
gboolean ags_math_util_match_exponent (gchar *offset
,gchar *end_ptr
,gchar **start_offset
,gchar **end_offset
);
Match exponent with or without parenthesis.
offset |
the string pointer |
|
end_ptr |
the end of |
|
start_offset |
points to start offset of matched, otherwise |
[out][transfer none] |
end_offset |
points to end offset of matched, otherwise |
[out][transfer none] |
Since: 3.6.0
gboolean ags_math_util_match_operator (gchar *offset
,gchar *end_ptr
,gchar **start_offset
,gchar **end_offset
);
Match operator.
offset |
the string pointer |
|
end_ptr |
the end of |
|
start_offset |
points to start offset of matched, otherwise |
[out][transfer none] |
end_offset |
points to end offset of matched, otherwise |
[out][transfer none] |
Since: 3.6.0
gboolean ags_math_util_match_function (gchar *offset
,gchar *end_ptr
,gchar **start_offset
,gchar **end_offset
);
Match function.
offset |
the string pointer |
|
end_ptr |
the end of |
|
start_offset |
points to start offset of matched, otherwise |
[out][transfer none] |
end_offset |
points to end offset of matched, otherwise |
[out][transfer none] |
Since: 3.6.0
gboolean ags_math_util_coefficient_to_complex (gchar *coefficient
,AgsComplex *value
);
Compute value
from coefficient
.
Since: 3.6.0
AgsComplex * ags_math_util_multiply_coefficient_all (gchar **coefficient
,guint *value_count
);
gchar *
ags_math_util_find_function (gchar *str
);
Find next function.
Since: 3.2.0
gchar *
ags_math_util_find_symbol (gchar *str
);
Find next symbol.
Since: 3.2.0
gchar **
ags_math_util_find_symbol_all (gchar *str
);
Find all symbols.
Since: 3.2.0
gboolean
ags_math_util_is_term (gchar *term
);
Test if term
is a term.
Since: 3.2.0
void ags_math_util_split_polynomial (gchar *polynomial
,gchar ***factor
,gchar ***factor_exponent
);
Split polynomial
into coefficient, powers of symbols and summand.
polynomial |
the polynomial |
|
factor |
the return location of factors. |
[out] |
factor_exponent |
the return location of factor exponents. |
[out] |
Since: 3.2.0