code: public void print( String equation ) {
          // first assume it's just a variable
          Variable v = lookupVariable(equation);
          if( v == null ) {
              Sequence sequence = compile(equation,false,false);
              sequence.perform();
              v = sequence.output;
          }
  
          if( v instanceof VariableMatrix ) {
              ((VariableMatrix)v).matrix.print();
          } else if(v instanceof VariableScalar ) {
              System.out.println("Scalar = "+((VariableScalar)v).getDouble() );
          } else {
              System.out.println("Add support for "+v.getClass().getSimpleName());
          }
      }
docs: Prints the results of the equation to standard out. Useful for debugging