コード例 #1
0
 /** Prints all the differentation rules for all functions on specified stream. */
 public void printDiffRules(PrintStream out) {
   out.println("Standard Functions and their derivatives");
   for (String key : globalDJep.getFunctionTable().functionNames()) {
     PostfixMathCommandI value = globalDJep.getFunctionTable().get(key);
     DiffRulesI rule = (DiffRulesI) diffRules.get(key);
     if (rule == null)
       out.print(
           key + " No diff rules specified (" + value.getNumberOfParameters() + " arguments).");
     else out.print(rule.toString());
     out.println();
   }
   for (Enumeration en = diffRules.keys(); en.hasMoreElements(); ) {
     String key = (String) en.nextElement();
     DiffRulesI rule = (DiffRulesI) diffRules.get(key);
     if (!globalDJep.getFunctionTable().contains(key)) {
       out.print(rule.toString());
       out.println("\tnot in JEP function list");
     }
   }
 }