public class Symbolic extends Object
| Constructor and Description |
|---|
Symbolic()
Initialize symbolic calculations using jasymca as the main engine.
|
Symbolic(String engine)
Set engine for symbolic calculations.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
derivative(String s)
Symbolic derivative.
|
String |
elementary(String s)
Rewrite an expression in term of elementary functions (log, exp, frac, sqrt, implicit roots).
|
String |
eval(String str)
Evaluate an expression with the given engine.
|
void |
exec(String str)
Execute a set of expressions.
|
String |
expand(String s)
Expanding a math formula.
|
String |
factorize(String s)
Factorize math formula.
|
Object |
getEngine()
Return the symbolic engine.
|
String |
getEngineName()
Return the name of the current engine.
|
String |
numeric(String s)
Evaluate numerical values and perform some substitutions.
|
String |
simplify(String s)
Simplify equation.
|
String |
toJava(String s)
Convert math equation to Java code
|
String |
toMathML(String s)
Convert an equation to MathML form.
|
public Symbolic(String engine)
engine - engine type. Can be "jasymc", "jscl" or "symja".public Symbolic()
public String getEngineName()
public Object getEngine()
public String eval(String str) throws Exception
str - string for evaluation.Exceptionpublic void exec(String str) throws Exception
str - string for evaluationExceptionpublic String toJava(String s) throws jscl.text.ParseException
s - input equationjscl.text.ParseExceptionpublic String toMathML(String s) throws jscl.text.ParseException
s - input equationjscl.text.ParseExceptionpublic String expand(String s) throws jscl.text.ParseException
s - input equationjscl.text.ParseExceptionpublic String factorize(String s) throws jscl.text.ParseException
s - input equationjscl.text.ParseExceptionpublic String elementary(String s) throws jscl.text.ParseException
s - input equationjscl.text.ParseExceptionpublic String simplify(String s) throws jscl.text.ParseException
s - input equationjscl.text.ParseExceptionpublic String numeric(String s) throws jscl.text.ParseException
s - jscl.text.ParseExceptionDMelt 2.0 © DataMelt by jWork.ORG