attor / symja

Automatically exported from code.google.com/p/symja
0 stars 0 forks source link

Bug in toMathML function #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I write a class:
public class TestMathML {

    public TestMathML(){

    }
    public String getMathMl(String anExpression)
    {
            StringWriter stringWriter = new StringWriter();
            new MathMLUtilities(new EvalEngine(),
            false).toMathML(anExpression, stringWriter);
            return stringWriter.toString();
    }
    public static void main(String[] args){
        TestMathML a = new TestMathML();
        System.out.println(a.getMathMl("Abs[-x]"));

    }
}

When program run, it throws some exception.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by huynhlam...@gmail.com on 28 Sep 2010 at 7:09

GoogleCodeExporter commented 9 years ago
You need to call 
  F.initSymbols(null, null, false);
first to intialize the system.

Original comment by axelclk@gmail.com on 28 Sep 2010 at 7:40

GoogleCodeExporter commented 9 years ago
Thanks you.

Original comment by huynhlam...@gmail.com on 28 Sep 2010 at 11:51

GoogleCodeExporter commented 9 years ago

Original comment by axelclk@gmail.com on 30 Sep 2010 at 7:14