Ask Your Question

x/x = 1 at x=0?

asked 2011-02-28 06:45:13 -0500

Shu gravatar image

How can I find that x/x is undefined at x=0?

Or any way when I write x/x, it returns x/x instead of 1?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2011-02-28 07:20:48 -0500

kcrisman gravatar image

There are a few ways to do this, though I do not know exactly what you need for this so it may or may not fill your needs.

sage: f = x.mul(1/x,hold=True)
sage: f
sage: f(x=3)
sage: f(x=0)
RuntimeError: power::eval(): division by zero

However, this will still give

sage: f.derivative(x)

So I don't know if this is exactly what you want. Also, we still don't have a way to 'unhold' other than simplification at this time.

sage: f.simplify()
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-02-28 06:45:13 -0500

Seen: 84 times

Last updated: Feb 28 '11