Sujet : Re: Totally OT: Colliding blocks that compute pi
De : yeti (at) *nospam* tilde.institute (yeti)
Groupes : comp.misc sci.electronics.designDate : 18. Mar 2025, 10:24:58
Autres entêtes
Organisation : Dark Energy Inside!
Message-ID : <87ldt2k7x1.fsf@tilde.institute>
References : 1 2
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Apropos PI day ... there is a PI related example in 9front's dc.1 man
page ...
<
https://tio.run/##LU7BCoMwFLv3KwIeBhU36@bm/mL3sYNYN4TWqVWYX9/liRTS95KXENvEmGDo0P5qP7gW7@nrcSf28yHANkcDX/cY6k@rEmUQRpgqR5hwJc4oEDo8cYbroGGQwm6oSWmERfjiJlKBDG7kVCo38UvhZpQcTrRcKu4PhBUmlyu6LLMlMSPKE2HZNbExT2kwikGrZOn9lN3YUm6FY0capBKLOo8fXgh@m2L8Aw>
------------------------------------------------------------------------
# pi example from 9front's dc.1 man page
#
1 sq 180 sr 60 st 2 si [ 3 li * 1 + d 1 + * 3 * su li 27 * 12 - lq * 5
lr * + lt 5 * / d 48 + P sy 10 lq li d 2 * 1 - * * * 10 lu lq li 5 * 2 -
* lr + ly lt * - * * sr sq lu lt * st li 1 + si lm x ] sm lm x
------------------------------------------------------------------------
Do the used constants trigger someone's memory about which algorithm
that may be?
I do like playing with DC, but turning others' un-commented code back to
readable maths so far was not among my just for fun DC puzzles.
-- 1. Hitchhiker 25: (59) Scarcely pausing for breath, Vroomfondel shouted,"We don't demand solid facts! What we demand is a total absence of solidfacts. I demand that I may or may not be Vroomfondel!"