#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2010 Doug Hellmann. All rights reserved. # """Logarithms close to zero. """ #end_pymotw_header import math x = 0.0000000000000000000000001 print x print math.exp(x) - 1 print math.expm1(x)