Skip to content

Commit

Permalink
Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
duy committed Aug 30, 2024
1 parent ddf7abc commit 2b2543c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
import androidx.annotation.NonNull;
import androidx.annotation.WorkerThread;

import com.symja.common.logging.DLog;
import com.symja.evaluator.config.SymjaEvaluationConfig;

import org.apfloat.FixedPrecisionApfloatHelper;
import org.matheclipse.core.basic.Config;
import org.matheclipse.core.basic.OperationSystem;
import org.matheclipse.core.eval.EvalEngine;
Expand Down Expand Up @@ -88,7 +90,10 @@ public SymjaResult eval(IExpr expr) throws Exception {
try {
long precision = finalExpr.determinePrecision();
EvalEngine evalEngine = exprEvaluator.getEvalEngine();
evalEngine.setNumericPrecision(precision);
FixedPrecisionApfloatHelper fixedPrecisionApfloatHelper = evalEngine.setNumericPrecision(precision);
if (DLog.DEBUG) {
DLog.d(TAG, "fixedPrecisionApfloatHelper = " + fixedPrecisionApfloatHelper);
}

final StringWriter outWriter = new StringWriter();
WriterOutputStream stdOut = new WriterOutputStream(outWriter);
Expand Down

0 comments on commit 2b2543c

Please sign in to comment.