Examples of toLaTeX()


Examples of org.sbml.jsbml.ASTNode.toLaTeX()

      System.out.printf("%d.\treading:\t%s\n", i, testCases[i]);
      parser = new FormulaParser(new StringReader(testCases[i]));
      ASTNode node;
      try {
        node = parser.parse();
        System.out.printf("%d.\tLaTeX:\t%s\n", i, node.toLaTeX());

        JDialog d = new JDialog();
        d.setTitle("Node output");
        d.setModal(true);
        d.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
View Full Code Here

Examples of org.sbml.jsbml.ASTNode.toLaTeX()

      System.out.println("Test mathML Special numbers\n");
      System.out.println("Build ASTNode by hand\n");

      System.out.println("\nNaN formula = " + formula_base.toFormula());
      System.out.println("NaN formula = " + formula_base.toMathML());
      System.out.println("NaN formula = " + formula_base.toLaTeX());
      System.out.println("NaN formula = " + formula_base.toString());

      formula_base = new ASTNode(Double.POSITIVE_INFINITY);

      System.out.println("\nInfinity formula = "
View Full Code Here

Examples of org.sbml.jsbml.ASTNode.toLaTeX()

      formula_base = new ASTNode(Double.POSITIVE_INFINITY);

      System.out.println("\nInfinity formula = "
          + formula_base.toFormula());
      System.out.println("Infinity formula = " + formula_base.toMathML());
      System.out.println("Infinity formula = " + formula_base.toLaTeX());
      System.out.println("Infinity formula = " + formula_base.toString());

      formula_base = new ASTNode(Double.NEGATIVE_INFINITY);

      System.out.println("\n-Infinity formula = "
View Full Code Here

Examples of org.sbml.jsbml.ASTNode.toLaTeX()

      System.out.println("\n-Infinity formula = "
          + formula_base.toFormula());
      System.out
          .println("-Infinity formula = " + formula_base.toMathML());
      System.out.println("-Infinity formula = " + formula_base.toLaTeX());
      System.out
          .println("-Infinity formula = " + formula_base.toString());

      System.out.println("\n\nBuild ASTNode by formula\n\n");
View Full Code Here

Examples of org.sbml.jsbml.ASTNode.toLaTeX()

      formula_base = ASTNode.parseFormula("NaN");

      System.out.println("\nNaN formula = " + formula_base.toFormula());
      System.out.println("NaN formula = " + formula_base.toMathML());
      System.out.println("NaN formula = " + formula_base.toLaTeX());
      System.out.println("NaN formula = " + formula_base.toString());

      formula_base = ASTNode.parseFormula("Infinity");

      System.out.println("\nInfinity formula = "
View Full Code Here

Examples of org.sbml.jsbml.ASTNode.toLaTeX()

      formula_base = ASTNode.parseFormula("Infinity");

      System.out.println("\nInfinity formula = "
          + formula_base.toFormula());
      System.out.println("Infinity formula = " + formula_base.toMathML());
      System.out.println("Infinity formula = " + formula_base.toLaTeX());
      System.out.println("Infinity formula = " + formula_base.toString());

      formula_base = ASTNode.parseFormula("-Infinity");

      System.out.println("\n-Infinity formula = "
View Full Code Here

Examples of org.sbml.jsbml.ASTNode.toLaTeX()

      System.out.println("\n-Infinity formula = "
          + formula_base.toFormula());
      System.out
          .println("-Infinity formula = " + formula_base.toMathML());
      System.out.println("-Infinity formula = " + formula_base.toLaTeX());
      System.out
          .println("-Infinity formula = " + formula_base.toString());

      System.out.println("\n\nBuild ASTNode by mathML\n\n");
View Full Code Here

Examples of org.sbml.jsbml.ASTNode.toLaTeX()

      formula_base = JSBML.readMathMLFromString("<math xmlns=\"http://www.w3.org/1998/Math/MathML\"> \n"
              + "  <notanumber/>\n" + "</math>\n");

      System.out.println("\nNaN formula = " + formula_base.toFormula());
      System.out.println("NaN formula = " + formula_base.toMathML());
      System.out.println("NaN formula = " + formula_base.toLaTeX());
      System.out.println("NaN formula = " + formula_base.toString());

      formula_base = JSBML.readMathMLFromString("<math xmlns=\"http://www.w3.org/1998/Math/MathML\"> \n"
              + "  <infinity/>\n" + "</math>\n");
View Full Code Here

Examples of org.sbml.jsbml.ASTNode.toLaTeX()

              + "  <infinity/>\n" + "</math>\n");

      System.out.println("\nInfinity formula = "
          + formula_base.toFormula());
      System.out.println("Infinity formula = " + formula_base.toMathML());
      System.out.println("Infinity formula = " + formula_base.toLaTeX());
      System.out.println("Infinity formula = " + formula_base.toString());

      formula_base = JSBML.readMathMLFromString("<math xmlns=\"http://www.w3.org/1998/Math/MathML\"> \n"
              + "  <apply>/n    <minus/>\n    <infinity/>\n  </apply>/n"
              + "</math>\n");
View Full Code Here

Examples of org.sbml.jsbml.ASTNode.toLaTeX()

              + "</math>\n");

      System.out.println("\n-Infinity formula = "
          + formula_base.toFormula());
      System.out.println("-Infinity formula = " + formula_base.toMathML());
      System.out.println("-Infinity formula = " + formula_base.toLaTeX());
      System.out
          .println("-Infinity formula = " + formula_base.toString());

      // Testing pi
      System.out.println("\n\nBuild ASTNode by hand\n");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.