Re: [Numpy-discussion] what goes wrong with cos(), sin()

2007-02-21 Thread WolfgangZillig
Anne Archibald schrieb: > On 21/02/07, WolfgangZillig <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I'm quite new to numpy/scipy so please excuse if my problem is too obvious. >> >> example code: >> >> import numpy as n >> print n.sin(n.pi

[Numpy-discussion] what goes wrong with cos(), sin()

2007-02-21 Thread WolfgangZillig
Hi, I'm quite new to numpy/scipy so please excuse if my problem is too obvious. example code: import numpy as n print n.sin(n.pi) print n.cos(n.pi/2.0) results in: 1.22460635382e-016 6.12303176911e-017 I've expected something around 0. Can anybody explain what I am doing wrong here?