[VA] SRC #017 - April 1st, 2024 Spring Special
|
04-20-2024, 06:27 PM
Post: #19
|
|||
|
|||
RE: [VA] SRC #017 - April 1st, 2024 Spring Special
(04-19-2024 09:51 PM)Valentin Albillo Wrote: Hello, Valentín, Yes, indeed that was a circular procedure. But then my interest had shifted to using these values of the Γ function to get γ on the calculator to full accuracy using less bytes than just writing the constant itself. Perhaps I should have used another label instead "L5th" for that one. But I have managed to do it also in a non-circular way, as you can see from this later post: (04-09-2024 05:19 PM)Gerson W. Barbosa Wrote: But there’s a better way to get those extra digits. We only have to use the GAMMA function twice: Anyway, it is possible to get about the same accuracy with only one evaluation of the Γ function near zero without resorting to circular proceeding. We can ignore the higher-order terms and easily isolate γ in the Laurent series expansion you have mentioned above: \[\gamma\approx\frac{1-\sqrt{1-\frac{z^2\pi^2}{6}+2\left({z\Gamma\left({z}\right)-1}\right)}}{z}\] N (1-√(1-z²π²/6+2(zΓ(z)-1)))/z; z=10⁻ᴺ ------------------------------------------------------- 1 0.585903128471302463502247124180713 2 0.57730596205274564964950936551113 3 0.5772165719234095045247918598371 4 0.577215673975865776232977270554 5 0.57721566499228031030482893493 6 0.5772156649024403392246767465 7 0.577215664901541935396815027 8 0.57721566490153295135441953 9 0.5772156649015328615139945 10 0.577215664901532860615600 11 0.57721566490153286060691 12 0.5772156649015328606039 -------------------------------------------------------- Best regards, Gerson. ----------------------------------------------------------- 00 { 42-Byte Prgm } 01▸LBL "gamma" 02 +/- 03 10↑X 04 PI 05 RCL× ST Y 06 X↑2 07 6 08 ÷ 09 RCL ST Y 10 GAMMA 11 RCL× ST L 12 LN 13 E↑X-1 14 STO+ ST X 15 - 16 1 17 X<>Y 18 - 19 SQRT 20 +/- 21 1 22 + 23 X<>Y 24 ÷ 25 END |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 10 Guest(s)