Hello,
I'm encountering an issue in using solve:
assume(x,"real")
assume(x>=0)
f(x)=(0.01+x^2)/(1+x^2)- 0.4*x
roots = solve(f(x) == 0,x)
num_roots = len(roots)
print "roots ", num_roots
roots
plot(f(x),(x,0,3))
I'm expecting 3 roots, but this only finds one. Is this intended? Can some provide insight on why this occuring?
Would the work-around be to do this numerically using find_root instead?
Thank you.
Cheers,
Long
'SageMath version 7.3, Release Date: 2016-08-04'