# Strange result from evaluating a Limit expression

Bug introduced in 9.0 and fixed in 10.0

When I evaluate the limit of (1-Cos[x]) Sin[1/x] at x = 0 in Mathematica 9, I obtained Interval[{-2, 2}]. The problem is that this limit is 0. It is also 0 when I compute it by Maple and Mathematica 7. So, I wonder whether I've found a bug in Mathematica 9?

Limit[(1 - Cos[x]) Sin[1/x], x -> 0]

Interval[{2, 2}]

• Are you sure that you didn't write by mistake (1+Cos[x]) Sin[1/x]? – Spawn1701D Apr 11 '13 at 1:45
• @Spawn1701D No. Please see the image added in my questions. Thank you for your answer! – Z-Y.L Apr 11 '13 at 1:59
• What subversion of 9 you have? Did you run the command after a initializing the kernel? If this is true its a big mess up! It's like saying that $\cos(0)=-1$! – Spawn1701D Apr 11 '13 at 2:04
• It's working fine for me on 9.0.1. Make sure x doesn't have a value with x=. first. – Michael Hale Apr 11 '13 at 2:08
• So we know it's a 32-bit / 64-bit issue. @Z-Y.L I guess there's not much more to say than that it's a bug ... could you report it to support@wolfram.com? – Szabolcs Apr 11 '13 at 13:37

Limit[(1 - Cos[x]) Sin[1/x], x -> 0]