pbrod / numdifftools

Solve automatic numerical differentiation problems in one or more variables.
BSD 3-Clause "New" or "Revised" License
253 stars 44 forks source link

Results are NaNs #55

Open parsaDarbouy opened 2 years ago

parsaDarbouy commented 2 years ago

Hi, the results of Gradient and Hessian are NaN. I believe, I get NaN as a result because the values of Gradient and Hessian are too small. However, I need to work with these small numbers. I was wondering if there is a solution for this problem.

pbrod commented 2 years ago

It is difficult to comment on this without an example. Can give a complete code-example @parsaDarbouy.