commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mansour Al Akeel <>
Subject Re: Parsing and solving algebraic equation from string
Date Mon, 21 Jul 2014 04:18:31 GMT
Luc and Ted, thank you for your help and support.
I understand the dimensionality part. Indeed most of the equations I
need to solve have one unknown.

I am looking to parse the equation from String to matrix form. I was
not lucky enough to find any parser that can do this out-of-the-box.
As Luc said, it will big project to write a parser that takes any
equation as a string, and generate the matrix (2-dimensional array) to
feed it into Commons Math.

Thank you.

On Sun, Jul 20, 2014 at 1:30 PM, Ted Dunning <> wrote:
> On Sun, Jul 20, 2014 at 12:01 AM, Luc Maisonobe <> wrote:
>> There are no parser in Apache Commons Math to build such systems
>> directly from string representations. We already discussed about this
>> and decided not to implement parsers, as they are already big projects
>> by themselves and depend on the syntax you want to parse. Parsers are
>> therefore considered to be out of Apache Commons Math scope. They belong
>> to higher level projects that could implement them for their own
>> specific syntax, and rely on Apache Commons Math to sovle the problem
>> once it has been translated from strings to structured numbered.
> Also, there are excellent parser construction systems out there to help
> with parsing.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message