MultNode.java

Go to the documentation of this file.
00001 package com.graphbuilder.math;
00002 
00006 public class MultNode extends OpNode {
00007 
00008     public MultNode(Expression leftChild, Expression rightChild) {
00009         super(leftChild, rightChild);
00010     }
00011 
00015     public double eval(VarMap v, FuncMap f) {
00016         double a = leftChild.eval(v, f);
00017         double b = rightChild.eval(v, f);
00018         return a * b;
00019     }
00020 
00021     public String getSymbol() {
00022         return "*";
00023     }
00024 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1