comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » sin() function in IDL 4.0.1
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: sin() function in IDL 4.0.1 [message #5848 is a reply to message #5773] Fri, 16 February 1996 00:00 Go to previous message
chs11 is currently offline  chs11
Messages: 14
Registered: October 1995
Junior Member
In article <311F6435.143A@eso.org>, Miska Le Louarn <lelouarn@eso.org> wrote:
> Hello,
> I just found an interesting behaviour of the sine function:
> when I ask IDL (4.0.1) to calculate sin(pi) here is what I get:
>
> IDL> print,sin(!Dpi)
> 1.2246064e-16 ; This should be 0.0000... (?)

If you want to see something even more interesting, try this...

IDL> plot,sin(dindgen(1000)*!Dpi)

or even worse...

IDL> plot,sin(dindgen(1000)*1e20*!Dpi)

This is quite troublesome.

Carl
[Message index]
 
Read Message
Read Message
Previous Topic: Help with WIDGET_TEXT (non-) events
Next Topic: Molecular Modelling really possible with pv-wave?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 00:41:48 PDT 2025

Total time taken to generate the page: 0.64348 seconds