math.pow

use cache to upgrade the calculating speed.