import java.util.*;
import com.singularsys.jep.*;
import com.singularsys.jep.functions.*;
/**
* An example custom function class for Jep.
*/
class Half extends PostfixMathCommand {
/**
* Constructor. The half function only accepts 1 parameter so the
* numberOfParameters value is set accordingly.
*/
public Half() {
numberOfParameters = 1;
}
/**
* Divides the value of the top on the inStack by two. The parameter is
* popped off the inStack
, and divided by two. The final value
* is pushed back to the top of inStack
.
*
* This function only accepts Double types. */ public void run(Stack