I get the output:
total = [ 2
6 + 3 c + c]
after executing with jlink:
String total = ml.evaluateToOutputForm("Expand[6 + c (3 + c)]", 0);
System.out.println("total = ["+total+"]");
I think there is a problem interpreting the exponential in the correct way..
Thanks again
Galasi