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
Hi,
I am trying out pyautodiff and I ran into the following problem:
pyautodiff
from autodiff import gradient @gradient def f(x): return x**2 print(f(100))
Prints out:
0.0
Which is wrong.
Instead if I call print(f(100.)) -- notice the dot, which makes the argument a float -- I get the correct result:
print(f(100.))
200.0
Am I missing something? Am I doing something wrong?
Thanks for all the good work!
GV
System information:
python3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I am trying out
pyautodiff
and I ran into the following problem:Prints out:
Which is wrong.
Instead if I call
print(f(100.))
-- notice the dot, which makes the argument a float -- I get the correct result:Am I missing something? Am I doing something wrong?
Thanks for all the good work!
GV
System information:
python3
branch, up to date (HEAD 7973e26)The text was updated successfully, but these errors were encountered: