Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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 :', x
- print '1 + x :', 1+x
- print 'log(1+x):', math.log(1+x)
- print 'log1p(x):', math.log1p(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement