The math.exp works only for scalars as EdChum mentions. Whereas numpy.exp will work for arrays. Example: >>> import math >>> import numpy as np >>> x = [1., ...
確定! 回上一頁