我在Python 3使用特殊功能lambertw(k=-1
),我需要用數字用它高於/低於最大/最小浮點數較低(1.7976931348623157e+308
) 。使用一個較大的數字比最大浮動的特殊功能lambertw
我該怎麼辦?
另外我嘗試使用「小數」,但它沒有工作,我。即,
from decimal import Decimal
from scipy.special import lambertw
lambertw(Decimal('3.1E+600'))
獲得此
,
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/share/apps/sistema/Python-3.5.1/lib/python3.5/site-packages/scipy/special/lambertw.py", line 107, in lambertw
return _lambertw(z, k, tol)
TypeError: ufunc '_lambertw' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
你能做的就是上傳你的它爲什麼沒有WO的解釋試圖沿着什麼樣的第一件事RK;告訴人們這裏*「我試着用」小數「,但它不起作用。」*沒有幫助。 –
我會驚訝,如果'scipy.special.lambertw'工程與'decimal.Decimal' ... –