Well, indeed we could turn those couple of lines into one, but there would be one disadvantage.
By “compressing” all those mathematical operations into one, you “loose” information and therefore whoever reads the source code, no longer understands the relationship between
Pi has enough processing power for handling it, we shouldn’t care too much about it - not in this case where we don’t do performance stuff.
Here’s a stackexchange answer that better explains this concept:
As for the Pull Request you’ve just created, please give us some time to test it (we already have some work on other PRs).
But I want to thank you for taking the time to write this Java library in such depth.
We might turn it into a tutorial like the following one: