ExpFunction.java

Go to the documentation of this file.
00001 package com.graphbuilder.math.func;
00002 
00008 public class ExpFunction implements Function {
00009 
00010     public ExpFunction() {}
00011 
00015     public double of(double[] d, int numParam) {
00016         return Math.exp(d[0]);
00017     }
00018 
00022     public boolean acceptNumParam(int numParam) {
00023         return numParam == 1;
00024     }
00025 
00026     public String toString() {
00027         return "exp(x)";
00028     }
00029 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1