Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

March 22 2010

mihi
mihi$ python
Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.log(1000000)/numpy.log(10)
5.9999999999999991
>>>
hmmmm....

Update: Even more WTF:

janus:Microarray mihi$ python
Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from rpy2 import robjects
>>> r=robjects.r
>>> r("log(1000000)/log(10)")[0]
5.9999999999999991
>>> print(r("log(1000000)/log(10)"))
[1] 6
>>> 
Reposted byralree ralree