use of org.matheclipse.core.interfaces.IAST in project symja_android_library by axkr.
the class ExpandTestCase method testExpand005.
public void testExpand005() {
// x / y
IAST ast = Times(x, Power(y, -1));
IExpr temp = Algebra.expandAll(ast, null, true, false);
// because of sorting and flattening flags:
assertEquals(temp, F.NIL);
// temp = ExpandAll.expandAll((IAST)temp, null, true, false);
// assertNull(temp);
}
use of org.matheclipse.core.interfaces.IAST in project symja_android_library by axkr.
the class ExpandTestCase method testExpand002.
public void testExpand002() {
IAST ast = Times(x, Times(C1D2, x));
IExpr temp = Algebra.expand(ast, null, false, false);
assertEquals(temp.toString(), "x^2/2");
}
use of org.matheclipse.core.interfaces.IAST in project symja_android_library by axkr.
the class ExpandTestCase method testExpand004.
public void testExpand004() {
IAST ast = Plus(Sow(Power(a, 2)), C1);
IExpr temp = Algebra.expandAll(ast, null, false, false);
if (!temp.isPresent()) {
temp = ast;
}
assertEquals(temp.toString(), "1+Sow[a^2]");
}
use of org.matheclipse.core.interfaces.IAST in project symja_android_library by axkr.
the class ExpandTestCase method testExpand007.
public void testExpand007() {
// Sec(x)^2*Sin(x)^2
IAST ast = Times(Power(Sec(x), C2), Power(Sin(x), 2));
IExpr temp = Algebra.expand(ast, null, true, false);
if (!temp.isPresent()) {
assertEquals(ast.toString(), "Sec[x]^2*Sin[x]^2");
return;
}
assertEquals(temp.toString(), "Tan[x]^2");
}
use of org.matheclipse.core.interfaces.IAST in project symja_android_library by axkr.
the class RubiIntegrationTest method testRubi010.
public void testRubi010() {
IAST ast;
ast = AbortRubi(Integrate);
// throws AbortException
check(ast, "Abort evaluation.\n" + "");
}
Aggregations