Ask Your Question
0

x/x = 1 at x=0?

asked 2011-02-28 13:45:13 +0200

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
0

answered 2011-02-28 14:20:48 +0200

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
x/x
sage: f(x=3)
1
sage: f(x=0)
<snip>
RuntimeError: power::eval(): division by zero

However, this will still give

sage: f.derivative(x)
0

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()
1
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

Stats

Asked: 2011-02-28 13:45:13 +0200

Seen: 254 times

Last updated: Feb 28 '11