News for hackers. Stuff that matters.
Re:Always Be Coding – How to Land an Engineering Job by davidbyttow on Wednesday May 22, 2013 @01:30AM (#5749075)
Intentional. The idea is that 1/1 could be a fluke. :-)
Re:Always Be Coding – How to Land an Engineering Job by wging on Wednesday May 22, 2013 @01:54AM (#5749144)
For x == 0, this also blows up.

And for x > 1, which base you use matters. E.g. if x == y == 2,

    >>> from math import log,e
    >>> 100 * log(2,2)
    100.0
    >>> 100 * log(2,e)
    69.31471805599453
    >>> 100 * log(2,10)
    30.102999566398115
I'm aware it's meaningless, but which base did you intend? :)