ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 06 Jul 2018 08:09:56 -0500ValueError: rtol too smallhttp://ask.sagemath.org/question/37540/valueerror-rtol-too-small/ 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!Mon, 08 May 2017 10:16:40 -0500http://ask.sagemath.org/question/37540/valueerror-rtol-too-small/Answer by stan for <p>Since Sage 7.3, I keep getting the following error whenever I use find_root():</p>
<p><code>ValueError: rtol too small (4.5e-16 < 8.88178e-16)</code></p>
<p>If is explicitly set e.g. <code>find_root(expr1, 0,1, rtol=1e-6)</code>, 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!</p>
http://ask.sagemath.org/question/37540/valueerror-rtol-too-small/?answer=37541#post-id-37541Not 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)
Mon, 08 May 2017 10:24:32 -0500http://ask.sagemath.org/question/37540/valueerror-rtol-too-small/?answer=37541#post-id-37541Comment by slelievre for <p>Not sure if/when the default rtol was changed, but my colleague just showed me how to overwrite it for a whole notebook:</p>
<pre><code>from functools import partial
find_root = partial(find_root, rtol=1e-9)
</code></pre>
http://ask.sagemath.org/question/37540/valueerror-rtol-too-small/?comment=42849#post-id-42849Related:
- [Sage Trac ticket #22439: Fix use of scipy rtol parameter](https://trac.sagemath.org/ticket/22439)Fri, 06 Jul 2018 08:09:56 -0500http://ask.sagemath.org/question/37540/valueerror-rtol-too-small/?comment=42849#post-id-42849