Python: OverflowError: math range error

后端 未结 6 708
轻奢々
轻奢々 2020-12-09 14:56

I get a Overflow error when i try this calculation, but i cant figure out why.

1-math.exp(-4*1000000*-0.0641515994108)
6条回答
  •  清歌不尽
    2020-12-09 15:59

    This may give you a clue why:

    http://www.wolframalpha.com/input/?i=math.exp%28-4*1000000*-0.0641515994108%29
    

    Notice the 111442 exponent.

提交回复
热议问题