| 1 | initial version |
The solution here is to write the following:
try:
if find_root(sin(x), 1, 2) in RR:
print("roots")
except RuntimeError:
print("no roots")
This will figure out IF there are roots in the specified interval, but won't tell you how many there are.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.