You are a guest. Restricted access. Read more.
SCaVis manual

Using the SymJa engine

SymJa is a Java computer algebra system which is discussed in more detail in SymJa web page. You should use the interface jhplot.math.Symbolic to initialize this engine. Then you can use in in Python, Groovy r JRuby scripts or within the Java programs. Here is a simple examples how to use it:

Code example

  Download for this example is disabled for non-members
 1: # Symbolic. Usung SymJa engine.
 2: #
 3: from jhplot.math   import *
 5: s=Symbolic("symja")
 6: util=s.getEngine()
 8: result = util.evaluate("Expand[(AX^2+BX)^2]")
 9: print result
11: result = util.evaluate("A=2;B=4")
12: print result
14: result = util.evaluate("Expand[(A*X^2+B*X)^2]")
15: print result
17: result = util.evaluate("Factor[-1+x^16]")
18: print result

The syntax of the program is described on the SymJa web site. Here are more examples showing how to expand a polynomial, calculate derivatives and work with matrices:

You are not full member and have a limited access to this section. One can unlock this part after becoming a full member.

Sergei Chekanov 2014/01/23 19:52

man/symbolic/symja.txt · Last modified: 2014/01/23 20:09 by admin
CC Attribution-Share Alike 3.0 Unported
Powered by PHP Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Valid HTML5