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