We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following gives an error:
import numpy as np import numdifftools as nd g = lambda x: 1.0/(np.exp(x[0]) + np.cos(x[1]) + 10) print(nd.Gradient(g, method="multicomplex")([1.0, 2.0]))
If I change the method to "complex", it works fine. Is there a way to use the multicomplex method in this situation and other similar ones?
"complex"
The text was updated successfully, but these errors were encountered:
I don't get this error:
Python 2.7.14 |Anaconda custom (64-bit)| (default, Oct 15 2017, 03:34:40) [MSC v.1500 64 bit (AMD64)] In [10]: nd.Gradient(g, method="multicomplex")([1.0, 2.0]) Out[10]: array([-0.01796112, 0.00600821])
What version of numdifftools and python are you using?
Sorry, something went wrong.
I'm on Windows 7 64-bit.
Python 3.6.5 :: Anaconda custom (64-bit) numdifftools=0.9.20=py_0
Fixed issue #39 TypeError: unsupported operand type(s) for /: 'float'…
481caaf
… and 'Bicomplex'
Fixed in commit [481caaf] (481caaf).
Closing.
No branches or pull requests
The following gives an error:
If I change the method to
"complex"
, it works fine. Is there a way to use the multicomplex method in this situation and other similar ones?The text was updated successfully, but these errors were encountered: