use of org.matheclipse.core.eval.EvalUtilities in project symja_android_library by axkr.
the class JavaFormTestCase method testJavaForm002.
public void testJavaForm002() {
// don't distinguish between lower- and uppercase identifiers
ParserConfig.PARSER_USE_LOWERCASE_SYMBOLS = true;
EvalUtilities util = new EvalUtilities(false, true);
IAST function = Sinc(Times(CI, CInfinity));
IExpr result = EvalEngine.get().evalHoldPattern(function);
assertEquals("F.Sinc(F.DirectedInfinity(F.CI))", result.internalJavaString(SYMBOL_FACTORY_PROPERTIES, -1, x -> null).toString());
result = util.evaluate(function);
assertEquals("F.oo", result.internalJavaString(SYMBOL_FACTORY_PROPERTIES, -1, x -> null).toString());
}
Aggregations