3 ms·
> high precision ≫ e*1e15 e × 1000000000000000 = 2718280000000000 Needs a bit of work, I think.
by btown 9y ago
> high precision
≫ e*1e15
e × 1000000000000000
= 2718280000000000
Needs a bit of work, I think.
- deleted 9y ago[deleted]
- contravariant 9y agoYet weirdly enough sin(pi) and 1 - log(e) are pretty close to 0 (still not exact but accurate to 30 digits).
- sharkdp 9y agoI realize it looks confusing in this example but this is just how it is displayed (with 6 significant digits). The internal precision is 30 digits.
- anowlcalledjosh 9y agoIndeed: >>> tan(90 deg) tan(90°) = 14444300000000000 >>> tan(pi/2) tan(pi / 2) = -70710700000000000000 >>> tan(180 deg) tan(180°) = -1.38463e-16 tan(90°) and tan(π/2) should both be undefined, but in Insect, they a) have a value and b) are not even equal. Weirdly enough, cos(π) and cos(2π) are exactly -1 and 1.