package ast.representation;

/**
 * Halving strategy
 * 
 * @author Gary T. Leavens
 * @since Mar 2, 2006
 *
 */
public class StrategyHalf implements Strategy
{
    /**
     * @return 1/2**i
     */
    public double apply(long i) {
        return 1.0/Math.pow(2.0, i);
    }
}
