4

Consider a typical system of equations like the following:

p x + 3 y = 0
2 x + q y = 0

Where p and q are symbols (they do not take values). I want to solve the system with a symbolic expression, for x and y, containing p and q.

I tried question How to Solve Equations with Java and How to Solve algebraic equations, but these are interested only in finding the arithmetic (not symbolic) values of x and y.

I'd like to know if there are Java packages that can handle symbolic calculation to solve such systems.

Community
  • 1
  • 1

1 Answers1

0

See another question: https://stackoverflow.com/questions/2574949/is-there-something-like-sympy-for-java, its responses point to useful symbolic math libraries usable in Java. You could find useful pointers also among the JAS related resources page.

Community
  • 1
  • 1
Carlo Pellegrini
  • 5,656
  • 40
  • 45
  • I have also found JAS but its documentation is not clear on how it deals with symbols. I have not tried all the other proposals in there yet. – Evangelos Bempelis Feb 28 '13 at 18:50
  • I checked the proposed solutions mentioned in the question you suggested. However: JSCL link did not work, symja seems to be more lika a tool than a reusable library. There was no API nor source code to download. And sympy and jpython implies usage of Python which I am not familiar with. – Evangelos Bempelis Mar 01 '13 at 10:32