Page 1 sur 1

Sine calculation output inconcistency

Publié : lun. oct. 19, 2015 9:32 am
par nenad.miksa
Hello!

When issuing

Code : Tout sélectionner

sin(pi/7)
into icas commandline, the output is

Code : Tout sélectionner

sin(pi/7)
However, when issuing

Code : Tout sélectionner

sin(pi/6.99)
the output is

Code : Tout sélectionner

0.434462124442
Why is the output not consistent (either decimal result or same as input in both cases)? Can this be made consistent?

Re: Sine calculation output inconcistency

Publié : mar. oct. 20, 2015 5:07 am
par parisse
It is consistent. For sin(pi/7) the input is exact, therefore the answer is exact, while for sin(pi/6.99) the input is approx. If you want an approx answer for the first input, enter sin(pi/7.0) instead.