@Override
    public void exp()
    {
        if (top < 1)
        {
            throw new EmptyStackException();
        }
        stack[top-1] = Math.exp(stack[top-1]);
    }
@ Override public void exp ( ) { if ( top < 1 ) { throw new EmptyStackException ( ) ; } stack [ top - 1 ] = Math . exp ( stack [ top - 1 ] ) ; }
@see java.lang.Math#exp(double)