First time here? Check out the FAQ!

Ask Your Question
1

ValueError: rtol too small

asked 7 years ago

stan gravatar image

Since Sage 7.3, I keep getting the following error whenever I use find_root():

ValueError: rtol too small (4.5e-16 < 8.88178e-16)

If is explicitly set e.g. find_root(expr1, 0,1, rtol=1e-6), then it runs without problems, but it is a bit tedious to change all my code and pass rtol to find_root(). Does anyone know if the default value has been changed, and if so, how it could be reset globally for a whole jupyter notebook? Thanks!

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 7 years ago

stan gravatar image

Not sure if/when the default rtol was changed, but my colleague just showed me how to overwrite it for a whole notebook:

from functools import partial
find_root = partial(find_root, rtol=1e-9)
Preview: (hide)
link

Comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 7 years ago

Seen: 984 times

Last updated: May 08 '17