OverflowError: math range error ???

Shagshag13 shagshag13 at yahoo.fr
Fri May 31 15:47:00 EDT 2002


So it's ok, i thing i should have work with real :o))))))))))

>>> math.log(15996 / 25859)
Traceback (most recent call last):
  File "<pyshell#7>", line 1, in ?
    math.log(15996 / 25859)
OverflowError: math range error
>>> math.log(15996.0 / 25859.0)
-0.48032001185119749


"Shagshag13" <shagshag13 at yahoo.fr> a écrit dans le message de news:
ad8bkk$va3sb$1 at ID-146704.news.dfncis.de...
>
> What does it mean "OverflowError: math range error" ???
>
> I get this:
>
> Traceback (most recent call last):
>   File "./build_index.py", line 91, in ?
>     ii.updateWeight()
>   File "./invertedindex.py", line 109, in updateWeight
>     idf = ( math.log( (N + 1) / (df + 1) ) / math.log(2) + 1 )
> OverflowError: math range error
>
> (ps: i am on Solaris, if this helps)
>
> thanks in advance,
>
> s13.
>
>
>





More information about the Python-list mailing list