Search in sources :

Example 31 with EvalEngine

use of org.matheclipse.core.eval.EvalEngine in project symja_android_library by axkr.

the class Symbol method setAttributes.

/** {@inheritDoc} */
@Override
public final void setAttributes(final int attributes) {
    fAttributes = attributes;
    if (fSymbolName.charAt(0) == '$' && Config.SERVER_MODE) {
        EvalEngine engine = EvalEngine.get();
        engine.addModifiedVariable(this);
    }
}
Also used : EvalEngine(org.matheclipse.core.eval.EvalEngine)

Example 32 with EvalEngine

use of org.matheclipse.core.eval.EvalEngine in project symja_android_library by axkr.

the class MathMLPresentationTestCase method setUp.

/**
	 * The JUnit setup method
	 */
protected void setUp() {
    try {
        // F.initSymbols();
        EvalEngine engine = new EvalEngine(false);
        mathUtil = new MathMLUtilities(engine, false, true);
    } catch (Exception e) {
        e.printStackTrace();
    }
// fParser = new Parser(null);
// ExpressionFactory factory = new ExpressionFactory(new Namespace());
// fParser.setFactory(factory);
// fMathMLFactory = new MathMLFormFactory(factory);
}
Also used : MathMLUtilities(org.matheclipse.core.eval.MathMLUtilities) EvalEngine(org.matheclipse.core.eval.EvalEngine)

Aggregations

EvalEngine (org.matheclipse.core.eval.EvalEngine)32 IExpr (org.matheclipse.core.interfaces.IExpr)15 IAST (org.matheclipse.core.interfaces.IAST)5 ISymbol (org.matheclipse.core.interfaces.ISymbol)5 IRational (org.matheclipse.core.interfaces.IRational)3 IOException (java.io.IOException)2 RecursionLimitExceeded (org.matheclipse.core.eval.exception.RecursionLimitExceeded)2 Num (org.matheclipse.core.expression.Num)2 IInteger (org.matheclipse.core.interfaces.IInteger)2 INum (org.matheclipse.core.interfaces.INum)2 Parser (org.matheclipse.parser.client.Parser)2 File (java.io.File)1 InputStream (java.io.InputStream)1 ObjectInputStream (java.io.ObjectInputStream)1 PrintWriter (java.io.PrintWriter)1 Apint (org.apfloat.Apint)1 UnivariateFunction (org.hipparchus.analysis.UnivariateFunction)1 RombergIntegrator (org.hipparchus.analysis.integration.RombergIntegrator)1 SimpsonIntegrator (org.hipparchus.analysis.integration.SimpsonIntegrator)1 TrapezoidIntegrator (org.hipparchus.analysis.integration.TrapezoidIntegrator)1