Hi,

The original news submission is in the attachment.

My new was just truncated to:

AgsFunction shall give you a fronted to solve linear equation systems.
Like functions with one or more variables.

The involved objects are:

AgsSolverMatrix
AgsSolverVector
AgsSolverPolynom

I am still working on the very basics, like parsing expressions in
ags/lib/ags_math_util.[ch]

The function ags_math_util_split_polynom() has just been implemented
and is able to split your polynomial into following components:

coefficient
symbols
exponent

The coefficient can be either numeric or constants like ℯ,
AgsFunction shall give you a fronted to solve linear equation systems. Like 
functions with one or more variables.

The involved objects are:

0 AgsSolverMatrix
0 AgsSolverVector
0 AgsSolverPolynom

I am still working on the very basics, like parsing expressions in 
_ags/lib/ags_math_util.[ch]_

The function *ags_math_util_split_polynom()* has just been implemented and is 
able to split your polynomial into following components:

* coefficient
* symbols
* exponent

The coefficient can be either numeric or constants like ℯ, 𝜋 and 𝑖.

The symbols usually take the form of a letter with optional numeric suffix like 
x0, x1 ...

The exponent is just extracted from exponent operator ^ and following 
parenthesis (), no arithmetic rewrite or anything else applied.

Input polynomial:
+verbatim+
-2 * a^(-2 * ℯ * 𝑖) * b^(0.25 * 𝜋)
-verbatim-

Output factors:
+verbatim+
factor = {"-2", "a", "b", NULL}
-verbatim-

Output factor exponents:
+verbatim+
factor_exponent = {"1", "-2 * ℯ * 𝑖", "0.25 * 𝜋", NULL}
-verbatim-

----

by Joël

Reply via email to