15 Sep
2020
15 Sep
'20
9:29 a.m.
Chris Angelico writes:
Hang on hang on, transcendental quantities are still finite. It may take an infinite sequence to fully calculate them, but they are finite values. We're not talking about pi here, we're talking about treating "infinity" as a value. You can certainly do arithmetic on pi.
Arithmetic, yes, I guess, but not correct trigonometry:
from math import tan, pi tan(pi/2) 1.633123935319537e+16
That's infinitely wrong in mathematics! Or 293 orders of magnitude, if you prefer IEEE, where inf == 1e309 :-)