[erlang-questions] sine and cosine with degree angles

Pierpaolo Bernardi olopierpa@REDACTED
Thu Aug 26 13:42:03 CEST 2010


On Thu, Aug 26, 2010 at 13:32, Roberto Ostinelli <roberto@REDACTED> wrote:
> 2010/8/26 Pierpaolo Bernardi <olopierpa@REDACTED>:
>>> any suggestions on how to proceed?
>>
>> Just go on.  Why is this a problem?
>
> ..because 0 =/= 6.123233995736766e-17 ?
>
> i use sine/cosine to compute distances of particles based on x,y,z angles.

the answer is close enough for any practical purpose, and the same number
will be computed by any programming language using ieee754 double precision,
it's not a problem of erlang.


More information about the erlang-questions mailing list