Ask Your Question
1

ValueError: rtol too small

asked 2017-05-08 17:16:40 +0100

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-05-08 17:24:32 +0100

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)
edit flag offensive delete link more

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: 2017-05-08 17:16:40 +0100

Seen: 845 times

Last updated: May 08 '17