decimal
decimal copied to clipboard
Generating Known Values for Trigonometry Methods
I noticed a number of known values are generated every time you run a trig. function (but not all of them). Wouldn't it be more efficient if all known values were generated once only?
Also, isn't using NewFromFloat() starting from a less accurate number? Would it be better to use RequireFromString() to generate known values?
This might be wonky of me, but as for the value of pi, instead of ... pi := NewFromFloat(3.14159265358979323846264338327950288419716939937510582097494459)
We could have ... var pi = RequireFromString("3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214")
(106 digits from https://oeis.org/A000796/constant)