Using symbolic computation:

sage: x=var('x')
sage: solve(1/x==0)
[ ]
sage:

However, and like matlab fzero command, the numerical answer of the
equation is $x \approx 0$ because of the change of sign of $1/x \in
[-1,1]$.

Maybe the "find_root" documentation needs to mention that continuity
of $f$ is necessary.

jpc



On Mar 15, 3:54 am, yacob <imya...@gmail.com> wrote:
> f(x)=1/x
> r1=find_root(f,-1,1);r1
> -1.8189894035440371e-12

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to