Computation of power and sample size for tests of the general