That's even hard to type out in our limited format here on HN. But it's what we mean to do.
Maybe better tooling could infer that if the limited math produces an angle indistinguishably close to 2pi, we probably meant for it to be equal to 2pi. Maybe it could do fractional addition, instead of converting to a decimal representation and truncating the number of digits.
Maybe it would write the outputs of the function in the initial triangle example, instead of as
Maybe better tooling could infer that if the limited math produces an angle indistinguishably close to 2pi, we probably meant for it to be equal to 2pi. Maybe it could do fractional addition, instead of converting to a decimal representation and truncating the number of digits.
Maybe it would write the outputs of the function in the initial triangle example, instead of as
it would be represented as Because the sine of 2pi/3 is sqrt(3)/2, not 0.866.