#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2010 Doug Hellmann. All rights reserved. # """Raise e to a power. """ #end_pymotw_header import math x = 2 fmt = '%.20f' print fmt % (math.e ** 2) print fmt % math.pow(math.e, 2) print fmt % math.exp(2)