public Operation . Info create ( Symbol op , Variable left , Variable right ) { switch ( op ) { case PLUS : return Operation . add ( left , right , managerTemp ) ; case MINUS : return Operation . subtract ( left , right , managerTemp ) ; case TIMES : return Operation . multiply ( left , right , managerTemp ) ; case RDIVIDE : return Operation . divide ( left , right , managerTemp ) ; case LDIVIDE : return Operation . divide ( right , left , managerTemp ) ; case POWER : return Operation . pow ( left , right , managerTemp ) ; case ELEMENT_DIVIDE : return Operation . elementDivision ( left , right , managerTemp ) ; case ELEMENT_TIMES : return Operation . elementMult ( left , right , managerTemp ) ; case ELEMENT_POWER : return Operation . elementPow ( left , right , managerTemp ) ; default : throw new RuntimeException ( "Unknown operation " + op ) ; } }
Create a new instance of a two input function from an operator character