ValueError: math domain error

前端 未结 4 1859
萌比男神i
萌比男神i 2020-12-01 02:35

I was just testing an example from Numerical Methods in Engineering with Python.

from numpy import zeros, array
from math import sin, log
from newto         


        
4条回答
  •  庸人自扰
    2020-12-01 02:54

    you are getting math domain error for either one of the reason : either you are trying to use a negative number inside log function or a zero value.

提交回复
热议问题