mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-06-30 16:59:27 +02:00
Documentation extended, periodic effective mass changed
This commit is contained in:
parent
d38bc656df
commit
b48326244e
2 changed files with 19 additions and 18 deletions
|
@ -11,11 +11,12 @@ def find_root(d, func, guess=1.0, **kwargs):
|
|||
Parameters
|
||||
-----------------
|
||||
d -- Obs passed to the function.
|
||||
func -- Function to be minimized.
|
||||
func -- Function to be minimized. Any numpy functions have to use the autograd.numpy wrapper
|
||||
guess -- Initial guess for the minimization.
|
||||
"""
|
||||
root = scipy.optimize.fsolve(func, guess, d.value)
|
||||
|
||||
# Error propagation as detailed in arXiv:1809.01289
|
||||
dx = jacobian(func)(root[0], d.value)
|
||||
da = jacobian(lambda u, v : func(v, u))(d.value, root[0])
|
||||
deriv = - da / dx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue