Examples of toLaTeX()


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

      System.out.println("\n\nBuild ASTNode by hand\n");
      formula_base = new ASTNode(Math.PI);     
     
      System.out.println("\npi formula = " + formula_base.toFormula());
      System.out.println("pi formula = " + formula_base.toMathML());
      System.out.println("pi formula = " + formula_base.toLaTeX());
      System.out.println("pi formula = " + formula_base.toString());

      System.out.println("\n\nBuild ASTNode by formula\n\n");

      formula_base = ASTNode.parseFormula("pi");
View Full Code Here

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

      formula_base = ASTNode.parseFormula("pi");

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

      System.out.println("\n\nBuild ASTNode by mathML\n\n");

      formula_base = JSBML
View Full Code Here

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

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

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

      // Testing exponentiale
      System.out.println("Build ASTNode by hand, number\n");
      formula_base = new ASTNode(Math.E);     
View Full Code Here

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

      System.out.println("Build ASTNode by hand, number\n");
      formula_base = new ASTNode(Math.E);     
     
      System.out.println("\ne formula = " + formula_base.toFormula());
      System.out.println("e formula = " + formula_base.toMathML());
      System.out.println("e formula = " + formula_base.toLaTeX());
      System.out.println("e formula = " + formula_base.toString());


      System.out.println("\nBuild ASTNode by hand, type CONSTANT_E\n");
     
View Full Code Here

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

     
      formula_base = new ASTNode(ASTNode.Type.CONSTANT_E);     
     
      System.out.println("\ne formula = " + formula_base.toFormula());
      System.out.println("e formula = " + formula_base.toMathML());
      System.out.println("e formula = " + formula_base.toLaTeX());
      System.out.println("e formula = " + formula_base.toString());


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

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

      formula_base = ASTNode.parseFormula("e");

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

      System.out.println("\n\nBuild ASTNode by formula, exponentiale\n\n");

      formula_base = ASTNode.parseFormula("exponentiale");
View Full Code Here

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

      formula_base = ASTNode.parseFormula("exponentiale");

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

      System.out.println("\n\nBuild ASTNode by mathML\n\n");

      formula_base = JSBML
View Full Code Here

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

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

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

     
    } catch (SBMLException e1) {
      // TODO Auto-generated catch block
View Full Code Here

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

      ASTNode testNode = ASTNode.parseFormula(formula);

      System.out.println("===================");
      System.out.printf("[IN]:\t%s\n", formula);
      System.out.printf("[OUT]:\t%s\n", testNode.toFormula());
      System.out.printf("[LTX]:\t%s\n", testNode.toLaTeX());

//      AssignmentRule as = new AssignmentRule(2, 4);
      Model m = new Model(2, 4);
      FunctionDefinition fd = new FunctionDefinition("f", 2, 4);
      m.addFunctionDefinition(fd);
View Full Code Here

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
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.